File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,24 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
if : github.ref == 'refs/heads/main'
14
14
steps :
15
- - name : checkout
16
- uses : actions/checkout@v3.0.0
17
- - name : build_and_deploy
15
+ - name : Checkout main
16
+ uses : actions/checkout@v4
17
+ - name : Build only
18
18
19
19
env :
20
- # Target branch
21
- PAGES_BRANCH : gh-pages
22
- TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
+ BUILD_DIR : public
21
+ BUILD_ONLY : true
22
+ - name : Upload artifact
23
+ uses : actions/upload-pages-artifact@v2
24
+ with :
25
+ path : ./public
26
+ deploy :
27
+ environment :
28
+ name : github-pages
29
+ url : ${{ steps.deployment.outputs.page_url }}
30
+ runs-on : ubuntu-latest
31
+ needs : build
32
+ steps :
33
+ - name : Deploy to GitHub Pages
34
+ id : deployment
35
+ uses : actions/deploy-pages@v3
You can’t perform that action at this time.
0 commit comments