File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ permissions:
17
17
id-token : write
18
18
19
19
jobs :
20
- test-and-deploy :
20
+ test-and-build :
21
21
runs-on : ubuntu-latest
22
22
23
23
steps :
44
44
browser : chrome
45
45
config : baseUrl=http://localhost:5173
46
46
47
- - name : Deploy to GitHub Pages
48
- if : github.ref == 'refs/heads/main'
49
- uses : peaceiris/actions-gh-pages@v4
47
+ - name : Upload artifact
48
+ uses : actions/upload-pages-artifact@v1
50
49
with :
51
- ACTIONS_DEPLOY_KEY : ${{ secrets.ACTIONS_DEPLOY_KEY }}
52
- publish_dir : ./dist
50
+ path : ./dist
51
+
52
+ deploy :
53
+ environment :
54
+ name : github-pages
55
+ url : ${{ steps.deployment.outputs.page_url }}
56
+ runs-on : ubuntu-latest
57
+ needs : test-and-build
58
+ steps :
59
+ - name : Deploy to GitHub Pages
60
+ id : deployment
61
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments