Skip to content

Commit 5d02cd7

Browse files
committed
Fix deployment to use gh-pages branch
1 parent aa891ba commit 5d02cd7

1 file changed

Lines changed: 6 additions & 18 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: read
10-
pages: write
11-
id-token: write
9+
contents: write
1210

1311
concurrency:
1412
group: "pages"
1513
cancel-in-progress: false
1614

1715
jobs:
18-
build:
16+
build-and-deploy:
1917
runs-on: ubuntu-latest
2018
steps:
2119
- name: Checkout
@@ -33,18 +31,8 @@ jobs:
3331
- name: Build Astro site
3432
run: npm run build
3533

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

0 commit comments

Comments
 (0)