File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release-workflow # You may choose a different name
2+ run-name : Release run ${{ github.run_number }} # Enumerates entries in the "workflow runs" view
3+ on :
4+ workflow_dispatch : # Only run when manually started
5+ jobs :
6+ release : # Arbitrarily chosen
7+ name : Release # Arbitrarily chosen
8+ runs-on : ubuntu-22.04 # May also run on other kinds of distros
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@v3
12+ - name : Setup Java
13+ uses : actions/setup-java@v3 # Does also set up Maven and GPG
14+ with :
15+ distribution : ' temurin' # As good as any other, see: https://github.com/actions/setup-java#supported-distributions
16+ java-package : ' jdk'
17+ java-version : ' 11'
18+ check-latest : true
19+ server-id : ' central'
20+ server-username : MVN_CENTRAL_USERNAME
21+ server-password : MVN_CENTRAL_PASSWORD
22+ cache : ' maven'
23+ - name : Build & Deploy
24+ run : |
25+ mvn -B gitflow:release
26+ env :
27+ MVN_CENTRAL_USERNAME : ${{ secrets.MVN_CENTRAL_USERNAME }}
28+ MVN_CENTRAL_PASSWORD : ${{ secrets.MVN_CENTRAL_PASSWORD }}
You can’t perform that action at this time.
0 commit comments