File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Deploy"
2+
3+ concurrency :
4+ group : " deploy"
5+ cancel-in-progress : true
6+
7+ on :
8+ workflow_dispatch :
9+ push :
10+ branches :
11+ - main
12+
13+ permissions :
14+ contents : write
15+
16+ jobs :
17+ deploy :
18+ name : Build & Deploy Plugins
19+ runs-on : ubuntu-latest
20+ timeout-minutes : 10
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v6
24+ with :
25+ path : " src"
26+
27+ - name : Checkout builds
28+ uses : actions/checkout@v6
29+ with :
30+ ref : " builds"
31+ path : " builds"
32+
33+ - name : Setup JDK 21
34+ uses : actions/setup-java@v5
35+ with :
36+ java-version : 21
37+ distribution : temurin
38+
39+ - name : Setup Gradle
40+ uses : gradle/actions/setup-gradle@v5
41+
42+ - name : Build
43+ run : |
44+ cd $GITHUB_WORKSPACE/src
45+ chmod +x ./gradlew
46+ ./gradlew make :generateUpdaterJson
47+
48+ rm -f $GITHUB_WORKSPACE/builds/*.zip
49+ cp $GITHUB_WORKSPACE/src/plugins/**/build/outputs/*.zip $GITHUB_WORKSPACE/builds/
50+ cp $GITHUB_WORKSPACE/src/build/outputs/updater.json $GITHUB_WORKSPACE/builds/
51+
52+ - name : Upload build artifacts
53+ uses : actions/upload-artifact@v6
54+ with :
55+ name : plugins
56+ if-no-files-found : error
57+ path : ${{ github.workspace }}/src/plugins/**/build/outputs/*.zip
58+
59+ - name : Push builds
60+ run : |
61+ cd $GITHUB_WORKSPACE/builds
62+ git config --local user.email "actions@github.com"
63+ git config --local user.name "GitHub Actions"
64+ git add .
65+ git commit -m "Build $GITHUB_SHA" || exit 0 # do not error if nothing to commit
66+ git push
Original file line number Diff line number Diff line change 1+ name : " Validate Gradle Wrapper"
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths :
7+ - gradlew*
8+ - gradle/gradle-wrapper.properties
9+ - gradle/gradle-wrapper.jar
10+ pull_request :
11+ paths :
12+ - gradlew*
13+ - gradle/gradle-wrapper.properties
14+ - gradle/gradle-wrapper.jar
15+
16+ jobs :
17+ validation :
18+ name : " Validate Authenticity of Gradle Wrapper"
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+ - uses : gradle/actions/wrapper-validation@v4
You can’t perform that action at this time.
0 commit comments