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

Commit dbee8bd

Browse files
authored
Remove GitHub Packages deploy.
1 parent 5023654 commit dbee8bd

File tree

1 file changed

+5
-34
lines changed

1 file changed

+5
-34
lines changed

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,16 @@ on:
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
1413
permissions:
1514
contents: read
1615
packages: write
17-
strategy:
18-
matrix:
19-
distribution: [ 'zulu' ] #, 'temurin' ]
20-
java: [ '8' ] #, '11' ]
21-
os: [ 'ubuntu-latest' ] #, 'macos-latest', 'windows-latest' ]
22-
name: Java ${{ matrix.distribution }} ${{ matrix.Java }} (${{ matrix.os }}) publish
16+
name: Java 8 (Zulu) publish
2317

2418
steps:
19+
- name: Checkout Code
2520
- uses: actions/checkout@v2
2621

27-
# - name: Import GPG Key
28-
# id: import_gpg
29-
# uses: crazy-max/ghaction-import-gpg@v4
30-
# with:
31-
# gpg_private_key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
32-
# passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
33-
34-
- name: Set up JDK
35-
uses: actions/setup-java@v2
36-
with:
37-
java-version: ${{ matrix.Java }}
38-
distribution: ${{ matrix.distribution }}
39-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
40-
server-username: MAVEN_USERNAME # env variable for username in deploy
41-
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
42-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
43-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
44-
45-
- name: Build with Maven
46-
run: mvn -B package --file pom.xml
47-
48-
- name: Publish to GitHub Packages Apache Maven
49-
run: mvn deploy
50-
env:
51-
GITHUB_TOKEN: ${{ github.token }}
52-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
53-
5422
- name: Set up Apache Maven Central
5523
uses: actions/setup-java@v2
5624
with: # running setup-java again overwrites the settings.xml
@@ -62,6 +30,9 @@ jobs:
6230
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
6331
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
6432

33+
- name: Build with Maven
34+
run: mvn -B package --file pom.xml
35+
6536
- name: Publish to Apache Maven Central
6637
run: mvn deploy
6738
env:

0 commit comments

Comments
 (0)