Skip to content

Commit 314f39c

Browse files
committed
Publish action now uses gh-pages instead of overwriting main
1 parent cc922fb commit 314f39c

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
run: npm clean-install
2222
- name: Run build
2323
run: npm run build
24-
- uses: stefanzweifel/git-auto-commit-action@v4
24+
- name: Deploy to gh-pages
25+
uses: peaceiris/actions-gh-pages@v3
2526
with:
26-
commit_message: Update github.io page
27-
branch: main
28-
file_pattern: docs/
29-
commit_user_name: cffinit
30-
push_options: '--force'
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./docs
29+
user_name: 'cffinit[bot]'
30+
user_email: 'cffinit[bot]@users.noreply.github.com'
31+
commit_message: ':robot: Update github.io page'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ yarn-error.log*
3232
*.njsproj
3333
*.sln
3434
node_modules
35+
36+
# Build files
37+
docs

0 commit comments

Comments
 (0)