-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 877 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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