Skip to content

Commit 7a6daa0

Browse files
committed
Switch to GitHub Actions deployment
1 parent 8e2e1d3 commit 7a6daa0

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/deploy.yml

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

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

1113
concurrency:
1214
group: "pages"
1315
cancel-in-progress: false
1416

1517
jobs:
16-
build-and-deploy:
18+
build:
1719
runs-on: ubuntu-latest
1820
steps:
1921
- name: Checkout
@@ -31,8 +33,18 @@ jobs:
3133
- name: Build Astro site
3234
run: npm run build
3335

34-
- name: Deploy to gh-pages
35-
uses: peaceiris/actions-gh-pages@v3
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
3638
with:
37-
github_token: ${{ secrets.GITHUB_TOKEN }}
38-
publish_dir: ./dist
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

0 commit comments

Comments
 (0)