Skip to content

Merge pull request #16 from MinBZK/fix/deploy-json #2

Merge pull request #16 from MinBZK/fix/deploy-json

Merge pull request #16 from MinBZK/fix/deploy-json #2

Workflow file for this run

name: Generate and Deploy Index
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Generate index.json
run: ./script/deploy
- name: Commit to deployment branch
run: |
git fetch
git checkout --orphan deployment
git reset --hard
git clean -fdx
git checkout main -- index.json
git add index.json
git commit -m 'Auto-generate index.json'
git push --force origin deployment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}