Skip to content

Commit d852171

Browse files
committed
Split GitHub workflows to build both packages
1 parent 2c7c738 commit d852171

File tree

4 files changed

+72
-2
lines changed

4 files changed

+72
-2
lines changed

.github/workflows/publish-github.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish libappindicator-gtk3-java to GitHub Packages
1+
name: Publish libappindicator-gtk3-java-full to GitHub Packages
22
on:
33
release:
44
types: [published]
@@ -13,6 +13,8 @@ jobs:
1313
if: startsWith(github.ref, 'refs/tags/') # only allow publishing tagged versions
1414
steps:
1515
- uses: actions/checkout@v3
16+
with:
17+
ref: 'develop'
1618
- uses: actions/setup-java@v3
1719
with:
1820
distribution: 'temurin'

.github/workflows/publish-maven.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish libappindicator-gtk3-java to Maven Central
1+
name: Publish libappindicator-gtk3-java-full to Maven Central
22
on:
33
release:
44
types: [published]
@@ -13,6 +13,8 @@ jobs:
1313
if: startsWith(github.ref, 'refs/tags/') # only allow publishing tagged versions
1414
steps:
1515
- uses: actions/checkout@v3
16+
with:
17+
ref: 'develop'
1618
- uses: actions/setup-java@v3
1719
with:
1820
distribution: 'temurin'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish libappindicator-gtk3-java-minimal to GitHub Packages
2+
on:
3+
release:
4+
types: [published]
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
if: startsWith(github.ref, 'refs/tags/') # only allow publishing tagged versions
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
ref: 'minimal'
18+
- uses: actions/setup-java@v3
19+
with:
20+
distribution: 'temurin'
21+
java-version: 19
22+
cache: 'maven'
23+
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
24+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
25+
- name: Enforce project version ${{ github.event.release.tag_name }}
26+
run: mvn versions:set -B -DnewVersion="${{ github.event.release.tag_name }}"
27+
- name: Deploy
28+
run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish libappindicator-gtk3-java-minimal to Maven Central
2+
on:
3+
release:
4+
types: [published]
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
if: startsWith(github.ref, 'refs/tags/') # only allow publishing tagged versions
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
ref: 'minimal'
18+
- uses: actions/setup-java@v3
19+
with:
20+
distribution: 'temurin'
21+
java-version: 19
22+
cache: 'maven'
23+
server-id: ossrh
24+
server-username: MAVEN_USERNAME
25+
server-password: MAVEN_PASSWORD
26+
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
27+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
28+
- name: Enforce project version ${{ github.event.release.tag_name }}
29+
run: mvn versions:set -B -DnewVersion="${{ github.event.release.tag_name }}"
30+
- name: Deploy
31+
run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
32+
env:
33+
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
34+
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
35+
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)