Skip to content

Commit 1208eba

Browse files
committed
wip actions v2
1 parent 475afbe commit 1208eba

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/build-snapshot.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Build a snapshot
22

33
on:
44
push:
5+
branches:
6+
- '**'
57
pull_request:
8+
branches:
9+
- '**'
610

711
jobs:
812
build:
@@ -22,7 +26,7 @@ jobs:
2226
gpg --yes --batch --pinentry-mode loopback --passphrase "" --quick-generate-key "$name" default default never
2327
- name: Build with Maven
2428
run: |
25-
MAVEN_GPG_PUBLIC_KEY="$(gpg --export --armor)" mvn verify
29+
MAVEN_GPG_PUBLIC_KEY="$(gpg --export --armor)" mvn -B verify
2630
- uses: actions/upload-artifact@v4
2731
with:
2832
path: andrvotr-dist/target/*SNAPSHOT.tar.gz*

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ jobs:
2828
distribution: 'temurin'
2929
cache: maven
3030
- name: Build with Maven
31-
run: mvn -Dgpg.signer=bc verify
31+
run: mvn -B -Dgpg.signer=bc verify
3232
- name: Attest
3333
uses: actions/attest-build-provenance@v1
3434
with:
35-
subject-path: andrvotr-dist/target/*SNAPSHOT.tar.gz*
35+
subject-path: andrvotr-dist/target/*.tar.gz*
3636
- name: Release
3737
run: |
38-
idpver="$(grep -Eom1 '<idp.version>[0-9]+' pom.xml | cut -d'>' -f2)"
39-
title="Andrvotr $GITHUB_REF_NAME for IdP ${idpver}.x"
40-
gh release create "$GITHUB_REF_NAME" --title "$title" --verify-tag andrvotr-dist/target/*SNAPSHOT.tar.gz*
38+
title="Andrvotr $GITHUB_REF_NAME (for IdP 5.x)"
39+
gh release create "$GITHUB_REF_NAME" --title "$title" --verify-tag andrvotr-dist/target/*.tar.gz*

0 commit comments

Comments
 (0)