Add files via upload #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy manifests | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- | |
name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Get commit SHA | |
id: vars | |
shell: bash | |
run: | | |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
echo "::set-output name=sha_short::$(git rev-parse HEAD)" | |
- | |
name: Import GPG Keys | |
uses: crazy-max/ghaction-import-gpg@v4 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
- | |
name: Build repo | |
run: | | |
bash build.sh | |
- | |
name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: publish | |
git-config-name: GitHub Actions | |
git-config-email: github-actions[bot]@users.noreply.github.com | |
commit-message: Updates repo to ${{ steps.vars.outputs.sha_short }} |