File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Grace Doc
2+ on :
3+ push :
4+ branches :
5+ - main
6+ paths :
7+ - ' docs/**'
8+ jobs :
9+ # Build job
10+ build :
11+ permissions :
12+ contents : read # to fetch code (actions/checkout)
13+ runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ java : ['11']
17+ steps :
18+ - name : Checkout repository
19+ env :
20+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21+ uses : actions/checkout@v4
22+ with :
23+ token : ${{ secrets.GITHUB_TOKEN }}
24+ - name : Set up JDK
25+ uses : actions/setup-java@v4
26+ with :
27+ distribution : ' adopt'
28+ java-version : ${{ matrix.java }}
29+ - name : Get the current version
30+ id : current_version
31+ run : |
32+ echo "$(cat gradle.properties | grep 'projectVersion=' | awk '{print $1}')" >> "$GITHUB_OUTPUT"
33+ - name : Generate Docs
34+ id : build
35+ uses : gradle/actions/setup-gradle@v3
36+ with :
37+ arguments : docs
38+ - name : Deploy to GitHub Pages
39+ id : deployment
40+ 41+ env :
42+ VERSION : ${{ steps.current_version.outputs.projectVersion }}
43+ TOKEN : ${{ secrets.GH_TOKEN }}
44+ BRANCH : gh-pages
45+ FOLDER : build/docs
You can’t perform that action at this time.
0 commit comments