This Github Action provides a way to directly use Fume within your CI/CD pipeline.
To use this Github Action, you will need an active Fume subscription.
In order to authenticate with Fume from Github Actions, we will need to add a FUME_TOKEN
secret to your repository.
To do so, you may do the following:
- On GitHub, navigate to the main page of the repository you intend to use this action on.
- Under your repository name, click
Settings
. - In the left sidebar, click
Secrets
. - Click
Add a new secret
. - For the name of your secret, enter
FUME_TOKEN
. - For the value itself, enter your Fume token. You may generate one in your Fume Sessions.
- Click
Add secret
.
Next, let's head over to the Actions
page, and create a new workflow.
To keep things simple, let's set up an action that deploys to environments production
or staging
when code is pushed to branches of the same name:
name: Deploy with fume
on:
push:
branches: [ staging, production ]
jobs:
fume:
name: Deploy with Fume
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: fumeapp/action@master
with:
token: ${{ secrets.FUME_TOKEN }}
# this passes the name of the branch
environment: ${GITHUB_REF##*/}
Place this in .github/workflows/deploy-fume.yml
The above does a few things:
- It does a git checkout of your NuxtJS|NestJS App (your repository) using the
actions/checkout
action. - It executes the
fume
CLI command, passing in the arguments given. In our example, this means it runsfume deploy production
.
If you would like to find out more regarding the syntax used by GitHub Actions, you can take a look at this page.
Please see CHANGELOG for more information.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.