Commit 302c662 1 parent 93aadc6 commit 302c662 Copy full SHA for 302c662
File tree 1 file changed +22
-5
lines changed
1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,28 @@ jobs:
52
52
- uses : actions/setup-node@v4
53
53
with :
54
54
node-version : 20
55
- - run : npm install
56
- - run : npm run build
57
- - run : cp .asf.yaml build/.asf.yaml
58
- - uses : peaceiris/actions-gh-pages@v3
59
- if : github.event_name != 'pull_request'
55
+
56
+ # Install dependencies and build site
57
+ - name : Install dependencies
58
+ run : npm install
59
+ - name : Build site
60
+ run : npm run build
61
+ - name : Copy ASF config
62
+ run : cp .asf.yaml build/.asf.yaml
63
+
64
+ # Deploy to asf-staged for PR preview
65
+ - name : Deploy to staging
66
+ if : github.event_name == 'pull_request'
67
+ uses : peaceiris/actions-gh-pages@v4
68
+ with :
69
+ github_token : ${{ secrets.GITHUB_TOKEN }}
70
+ publish_dir : ./build
71
+ publish_branch : asf-staging
72
+
73
+ # Deploy to asf-site for production
74
+ - name : Deploy to production
75
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
76
+ uses : peaceiris/actions-gh-pages@v4
60
77
with :
61
78
github_token : ${{ secrets.GITHUB_TOKEN }}
62
79
publish_dir : ./build
You can’t perform that action at this time.
0 commit comments