Skip to content

Commit 95c6115

Browse files
Harshith ReddyHarshith Reddy
authored andcommitted
Fix Pages: deploy via gh-pages branch
1 parent 9639b78 commit 95c6115

File tree

1 file changed

+8
-27
lines changed

1 file changed

+8
-27
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,11 @@ on:
44
push:
55
branches: [master]
66

7-
permissions:
8-
contents: read
9-
pages: write
10-
id-token: write
11-
12-
concurrency:
13-
group: "pages"
14-
cancel-in-progress: false
15-
167
jobs:
17-
build:
8+
build-and-deploy:
189
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
1912
steps:
2013
- name: Checkout
2114
uses: actions/checkout@v4
@@ -32,21 +25,9 @@ jobs:
3225
- name: Build
3326
run: npm run build
3427

35-
- name: Setup Pages
36-
uses: actions/configure-pages@v4
37-
38-
- name: Upload artifact
39-
uses: actions/upload-pages-artifact@v3
28+
- name: Deploy to gh-pages
29+
uses: peaceiris/actions-gh-pages@v4
4030
with:
41-
path: dist
42-
43-
deploy:
44-
environment:
45-
name: github-pages
46-
url: ${{ steps.deployment.outputs.page_url }}
47-
runs-on: ubuntu-latest
48-
needs: build
49-
steps:
50-
- name: Deploy to GitHub Pages
51-
id: deployment
52-
uses: actions/deploy-pages@v4
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./dist
33+
force_orphan: true

0 commit comments

Comments
 (0)