Skip to content

Commit 5540455

Browse files
fix: remove redundant pnpm install and use gh-pages cli tool instead of gh-pages-action because of permissions error
1 parent 7470e2a commit 5540455

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/deploy.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@ jobs:
1414
args: [--frozen-lockfile, --strict-peer-dependencies]
1515
- args: [--global, gulp, prettier, typescript]
1616
17-
- run: pnpm install
18-
1917
- run: pnpm build
2018

21-
- name: Deploy to GitHub Pages
22-
uses: peaceiris/actions-gh-pages@v3
23-
with:
24-
github_token: ${{ secrets.GITHUB_TOKEN }}
25-
publish_dir: ./dist
19+
# FAILING with error about permissions
20+
# - name: Deploy to GitHub Pages
21+
# uses: peaceiris/actions-gh-pages@v3
22+
# with:
23+
# github_token: ${{ secrets.GITHUB_TOKEN }}
24+
# publish_dir: ./dist
25+
26+
- name: Deploy with gh-pages
27+
run: |
28+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
29+
npx gh-pages -d dist -u "github-actions-bot <[email protected]>"
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)