File tree Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ release :
4+ types : [published]
5+ permissions :
6+ contents : read
7+ pages : write
8+ id-token : write
9+ jobs :
10+ deploy-artifact :
11+ if : ${{ github.repository_owner == 'reactiverse'}} && false
12+ runs-on : ubuntu-latest
13+ env :
14+ CENTRAL_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
15+ CENTRAL_PASSWORD : ${{ secrets.CENTRAL_PASSWORD }}
16+ MAVEN_GPG_KEY : ${{ secrets.GPG_SIGNING_KEY }}
17+ MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v2
21+ with :
22+ ref : ${{ github.release.tag_name }}
23+ - name : Install JDK
24+ uses : actions/setup-java@v4
25+ with :
26+ java-version : 11
27+ distribution : temurin
28+ server-id : central
29+ server-username : CENTRAL_USERNAME
30+ server-password : CENTRAL_PASSWORD
31+ - name : Maven deploy
32+ run : mvn deploy -DskipTests -B -Dgpg.signer=bc
33+ - name : Upload static files as artifact
34+ id : deployment
35+ uses : actions/upload-pages-artifact@v3
36+ with :
37+ path : docs/
38+ package-docs :
39+ if : ${{ github.repository_owner == 'reactiverse'}}
40+ runs-on : ubuntu-latest
41+ steps :
42+ - name : Checkout
43+ uses : actions/checkout@v2
44+ with :
45+ ref : ${{ github.release.tag_name }}
46+ - name : Install JDK
47+ uses : actions/setup-java@v4
48+ with :
49+ java-version : 11
50+ distribution : temurin
51+ - name : Build docs
52+ run : mvn package site -DskipTests -B
53+ - name : Build docs with Jekyll
54+ uses : actions/jekyll-build-pages@v1
55+ with :
56+ source : ./docs/
57+ destination : ./_site
58+ - name : Upload docs as artifact
59+ id : deployment
60+ uses : actions/upload-pages-artifact@v3
61+ deploy-docs :
62+ environment :
63+ name : github-pages
64+ url : ${{ steps.deployment.outputs.page_url }}
65+ runs-on : ubuntu-latest
66+ needs : package-docs
67+ steps :
68+ - name : Deploy to GitHub Pages
69+ id : deployment
70+ uses : actions/deploy-pages@v4
71+
You can’t perform that action at this time.
0 commit comments