This repository was archived by the owner on Jan 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 1515 env :
1616 GITHUB_CONTEXT : ${{ toJson(github) }}
1717 run : echo "$GITHUB_CONTEXT"
18-
18+
19+ build :
20+ runs-on : ubuntu-latest
21+ name : Build Beta Snapshot on Java 8 (Zulu)
22+
23+ steps :
24+ - name : Checkout Code
25+ uses : actions/checkout@v2
26+
27+ - name : Set up JDK
28+ uses : actions/setup-java@v2
29+ with :
30+ java-version : 8
31+ distribution : zulu
32+ cache : maven
33+ server-id : ossrh # Value of the distributionManagement/repository/id field of the pom.xml
34+ server-username : MAVEN_USERNAME # env variable for username in deploy
35+ server-password : MAVEN_CENTRAL_TOKEN # env variable for token in deploy
36+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
37+ gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
38+
39+ - name : Derive Beta Version Number
40+ run : echo "DERIVED_VERSION=${GITHUB_REF_NAME##*/}-SNAPSHOT" >> $GITHUB_ENV
41+
42+ - name : Build & Publish to Apache Maven Central
43+ run : mvn -B package deploy
44+ env :
45+ MAVEN_USERNAME : willhains
46+ MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
47+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments