Skip to content

Commit

Permalink
Fix gh-pages workflow (7.9.2 branch) (#2169)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon authored Dec 2, 2024
1 parent 795f93e commit 3a8d2c8
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
paths:
- 'Extensions/*'
- 'Themes/*'
workflow_dispatch:

permissions:
contents: write

jobs:
build:
Expand Down Expand Up @@ -36,8 +40,13 @@ jobs:

- name: Push changes to gh-pages
run: >
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages
--add
--dist .
--src "{Extensions/dist/*.json,Extensions/dist/page/gallery.json,Extensions/dist/page/list.json,Extensions/dist/page/themes.json}"
--message 'Rebuild Distribution'
-u "github-actions-bot <[email protected]>"
--add
--dist .
--src "{Extensions/dist/*.json,Extensions/dist/page/gallery.json,Extensions/dist/page/list.json,Extensions/dist/page/themes.json}"
--message 'Rebuild Distribution'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3a8d2c8

Please sign in to comment.