Skip to content

Commit 18681d3

Browse files
fix: use official github pages action
1 parent 7a0e94f commit 18681d3

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/deploy.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@ jobs:
1616
1717
- run: pnpm build
1818

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
19+
- name: Build
20+
run: pnpm build -- --base /presentation-libgit2-nodegit-native-git-oh-my/
2521

26-
- name: Deploy with gh-pages
27-
run: |
28-
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
29-
pnpm dlx gh-pages -d dist -u "github-actions-bot <[email protected]>"
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
- uses: actions/configure-pages@v4
23+
24+
- uses: actions/upload-pages-artifact@v3
25+
with:
26+
path: dist
27+
28+
- name: Deploy
29+
id: deployment
30+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)