Fix default "latest" tag, value should be "apache" not "latest" #5
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: Build and Deploy to GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
# Due to an unaddressed bug in GitHub, paths + branches fails to work. Maybe one day it will be fixed. I'm not holding my breath. | |
# https://github.com/orgs/community/discussions/134570 | |
# paths: | |
# - './templates/*.json' | |
# - './collate.sh' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pages: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Collate Templates & Package for Deployment | |
run: | | |
./collate.sh | |
mkdir -p latest | |
mv templates.json latest/ | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./latest |