Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
/ purity Public archive

Commit 71b1c76

Browse files
author
Will Hains
committed
Merge branch 'beta/0.22' into alpha
2 parents 9b6f526 + ba2f715 commit 71b1c76

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/beta-build.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,33 @@ jobs:
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 }}

0 commit comments

Comments
 (0)