Skip to content

Commit d672b0e

Browse files
committed
ci: fix deploy
1 parent 911d8c9 commit d672b0e

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.github/workflows/deploy.yml

+21-8
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ on:
44
- master
55

66
jobs:
7-
publish:
7+
build:
88
runs-on: ubuntu-latest
9-
permissions:
10-
contents: write
11-
deployments: write
129
name: Publish to Github Pages
1310
steps:
1411
- name: Checkout
@@ -33,8 +30,24 @@ jobs:
3330
export BASE=/example-dex/
3431
yarn build
3532
36-
- name: Publish to Github Pages
37-
uses: peaceiris/actions-gh-pages@v3
33+
- name: Upload artifact
34+
uses: actions/upload-pages-artifact@v3
3835
with:
39-
github_token: ${{ secrets.GITHUB_TOKEN }}
40-
publish_dir: ./build/client
36+
path: ./build/client
37+
38+
deploy:
39+
needs: build
40+
41+
permissions:
42+
pages: write
43+
id-token: write
44+
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)