Skip to content

Commit a634c20

Browse files
authored
Update my-pipeline.yml
1 parent 701d667 commit a634c20

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.github/workflows/my-pipeline.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: my-pipeline
22

3-
permissions:
4-
contents: write
5-
63
on:
74
push:
8-
tags:
9-
- '*'
105
branches:
116
- main
127

8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
1313
env:
1414
REGISTRY: ghcr.io
1515
IMAGE_NAME: ${{ github.repository }}
@@ -36,9 +36,18 @@ jobs:
3636
- name: build
3737
run: yarn build
3838

39-
- name: deploy
40-
uses: peaceiris/actions-gh-pages@v3
39+
- name: upload artifact
40+
uses: actions/upload-pages-artifact@v2
4141
with:
42-
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
publish_dir: ./build
44-
# cname: wolanx.com
42+
path: ./build
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)