File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change 5454 ./gradlew publish
5555
5656 - name : Prepare Javadocs
57- if : ${{ success() && github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
5857 run : |
5958 mv Essentials/build/docs/javadoc/ javadocs/
6059 cp -r EssentialsAntiBuild/build/docs/javadoc/ javadocs/EssentialsAntiBuild/
@@ -65,11 +64,32 @@ jobs:
6564 cp -r EssentialsSpawn/build/docs/javadoc/ javadocs/EssentialsSpawn/
6665 cp -r EssentialsXMPP/build/docs/javadoc/ javadocs/EssentialsXMPP/
6766
68- - name : Deploy Javadocs
69- if : ${{ success() && github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
70- uses : netlify/actions/cli@master
67+ - name : Archive Javadocs
68+ uses : actions/upload-artifact@master
7169 with :
72- args : deploy --dir=javadocs/ --prod --message="GitHubActionsDeploy"
70+ name : javadocs
71+ path : javadocs/
72+
73+ publish-jd :
74+ name : Publish Javadocs
75+ needs : build
76+ if : ${{ github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
77+ runs-on : ubuntu-latest
78+
79+ steps :
80+ - name : Setup Node
81+ uses : actions/setup-node@v3
82+ with :
83+ node-version : 16
84+
85+ - name : Download Javadocs
86+ uses : actions/download-artifact@master
87+ with :
88+ name : javadocs
89+ path : javadocs/
90+
91+ - name : Deploy Javadocs
92+ run : npx netlify-cli deploy --dir=javadocs/ --prod --message="GitHubActionsDeploy"
7393 env :
7494 NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_JD_AUTH_TOKEN }}
7595 NETLIFY_SITE_ID : ${{ secrets.NETLIFY_JD_2X_SITE_ID }}
You can’t perform that action at this time.
0 commit comments