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 8585 cp -r processing4/build/javadoc/core ../docs/
8686 fi
8787
88+ - name : Upload Javadocs artifact
89+ uses : actions/upload-pages-artifact@v1
90+ with :
91+ path : ./docs
92+
8893 - name : Clean up the processing4 directory
8994 run : |
9095 rm -rf processing4/
@@ -116,19 +121,18 @@ jobs:
116121 PAT_TOKEN : ${{ secrets.PAT_TOKEN }}
117122
118123 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 }}
119131 runs-on : ubuntu-latest
120- needs : commit-javadoc
121-
122132 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
129136
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