This repository contains a GitHub action that deploys a front-end directory to a project hosted on the Applura platform.
Use it to automatically deploy changes via a GitHub workflow.
First, navigate to your Applura project and generate a deploy key. Deploy keys can be found via the Applura web interface by navigating to Application > Deploy keys.
Once you have copied your new deploy key. Add it to you GitHub repository via the GitHub web interface by navigating to Settings > Secrets and variables > Actions > New repository secret.
Name the secret APPLURA_DEPLOY_KEY
.
Finally, add the following step to your workflow using this snippet:
- name: Set release note
run: echo "release_note=Git commit $(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
- name: Deploy to Applura
uses: applura/deploy@1.0.1
with:
key: ${{ secrets.APPLURA_DEPLOY_KEY }}
note: ${{ env.release_note }}
directory: ./dist
Where:
key
is the generated deploy keynote
is the release note associated with release (in this example it contains commit has which triggered action)directory
is the fully built and compiled directory of front-end files to be deployed