File tree 1 file changed +17
-8
lines changed
1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,20 @@ jobs:
19
19
- name : Build
20
20
run : npm run build # The build command of your project
21
21
22
- - name : Push
23
- uses : s0/git-publish-subdir-action@develop
24
- env :
25
- REPO : self
26
- BRANCH : gh-pages
27
- FOLDER : build
28
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
- MESSAGE : " Build: ({sha}) {msg}" # The commit message
22
+ - name : Upload static files as artifact
23
+ id : deployment
24
+ uses : actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
25
+ with :
26
+ path : build/
27
+
28
+ # Deployment job
29
+ deploy :
30
+ environment :
31
+ name : github-pages
32
+ url : ${{ steps.deployment.outputs.page_url }}
33
+ runs-on : ubuntu-latest
34
+ needs : build
35
+ steps :
36
+ - name : Deploy to GitHub Pages
37
+ id : deployment
38
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments