diff options
Diffstat (limited to '.github/workflows/pages.yml')
-rw-r--r-- | .github/workflows/pages.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..dabacf2 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,30 @@ +name: Pages +on: + workflow_dispatch: + +jobs: + update-directory: + runs-on: ubuntu-latest + steps: + - name: check out + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: setup node + uses: actions/setup-node@v4.0.1 + with: + node-version: latest + + - name: generate + run: | + node .github/bin/generate-gh-pages.mjs + + - name: save + run: | + # Git config + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git add . + git commit --allow-empty -m "Generate pages" + git push --set-upstream origin main |