zork #4
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
# This workflow will generate updated metadata when changes are merged into the main branch | |
name: Build GH Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
update_metadata: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: main | |
path: main | |
- uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: generate-json | |
run: | | |
python main/gen_skill_list.py | |
- name: copy updated json | |
run: | | |
cp main/skills.json gh-pages/skills.json | |
- uses: EndBug/add-and-commit@v7 | |
with: | |
cwd: ./gh-pages | |
branch: gh-pages | |
add: skills.json | |
message: "Automated Metadata Update" |