File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 85
85
cp -r processing4/build/javadoc/core ../docs/
86
86
fi
87
87
88
+ - name : Upload Javadocs artifact
89
+ uses : actions/upload-pages-artifact@v1
90
+ with :
91
+ path : ./docs
92
+
88
93
- name : Clean up the processing4 directory
89
94
run : |
90
95
rm -rf processing4/
@@ -116,19 +121,18 @@ jobs:
116
121
PAT_TOKEN : ${{ secrets.PAT_TOKEN }}
117
122
118
123
deploy-javadoc :
124
+ needs : build-javadoc
125
+ permissions :
126
+ pages : write
127
+ id-token : write
128
+ environment :
129
+ name : github-pages
130
+ url : ${{ steps.deployment.outputs.page_url }}
119
131
runs-on : ubuntu-latest
120
- needs : commit-javadoc
121
-
122
132
steps :
123
- - name : Checkout gh-pages branch
124
- uses : actions/checkout@v3
125
- with :
126
- repository : processing/processing4-javadocs
127
- ref : gh-pages
128
- fetch-depth : 0
133
+ - name : Deploy to GitHub Pages
134
+ id : deployment
135
+ uses : actions/deploy-pages@v4
129
136
130
- - name : Deploy to GitHub Pages
131
- uses : peaceiris/actions-gh-pages@v3
132
- with :
133
- github_token : ${{ secrets.GITHUB_TOKEN }}
134
- publish_dir : ./docs
137
+ - name : Echo the output page URL
138
+ run : echo "Your site is live at ${{ steps.deployment.outputs.page_url }}"
You can’t perform that action at this time.
0 commit comments