Fix: Update gh-pages command in deployment workflow

This commit is contained in:
Magnus Smari Smarason
2025-05-17 22:02:00 +00:00
parent d7c781d532
commit cac1a70eda

View File

@ -23,6 +23,6 @@ jobs:
run: npm ci
- name: Deploy to GitHub Pages
run: npm run deploy
run: npx gh-pages -d dist --repo "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" --user "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # gh-pages needs this to push
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Ensures token is available if gh-pages or git commands need it directly