File tree Expand file tree Collapse file tree 5 files changed +66
-110
lines changed Expand file tree Collapse file tree 5 files changed +66
-110
lines changed Original file line number Diff line number Diff line change 55 paths :
66 - ' .github/project.yml'
77
8- jobs :
9- release :
10- runs-on : ubuntu-latest
11- name : pre release
12-
13- steps :
14- - uses : radcortez/project-metadata-action@master
15- name : retrieve project metadata
16- id : metadata
17- with :
18- github-token : ${{secrets.GITHUB_TOKEN}}
19- metadata-file-path : ' .github/project.yml'
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : true
2011
21- - name : Validate version
22- if : contains(steps.metadata.outputs.current-version, 'SNAPSHOT')
23- run : |
24- echo '::error::Cannot release a SNAPSHOT version.'
25- exit 1
12+ jobs :
13+ pre-release :
14+ name : Pre-Release
15+ uses : quarkiverse/.github/.github/workflows/pre- release.yml@main
16+ secrets : inherit
Original file line number Diff line number Diff line change 1+ name : Quarkiverse Perform Release
2+ run-name : Perform ${{github.event.inputs.tag || github.ref_name}} Release
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+ workflow_dispatch :
8+ inputs :
9+ tag :
10+ description : ' Tag to release'
11+ required : true
12+
13+ permissions :
14+ attestations : write
15+ id-token : write
16+ contents : read
17+
18+ concurrency :
19+ group : ${{ github.workflow }}-${{ github.ref }}
20+ cancel-in-progress : true
21+
22+ jobs :
23+ perform-release :
24+ name : Perform Release
25+ uses : quarkiverse/.github/.github/workflows/perform-release.yml@main
26+ secrets : inherit
27+ with :
28+ version : ${{github.event.inputs.tag || github.ref_name}}
Original file line number Diff line number Diff line change 1+ name : Quarkiverse Prepare Release
2+
3+ on :
4+ pull_request :
5+ types : [ closed ]
6+ paths :
7+ - ' .github/project.yml'
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ prepare-release :
15+ name : Prepare Release
16+ if : ${{ github.event.pull_request.merged == true}}
17+ uses : quarkiverse/.github/.github/workflows/prepare-release.yml@main
18+ secrets : inherit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Snapshot Deploy
33concurrency :
44 group : ${{ github.ref }}-${{ github.workflow }}
55 cancel-in-progress : true
6+
67on :
78 workflow_dispatch :
89 push :
@@ -12,28 +13,16 @@ defaults:
1213 run :
1314 shell : bash
1415
16+ permissions :
17+ attestations : write
18+ id-token : write
19+ contents : read
20+
1521jobs :
1622 deploy-snapshot :
17- runs-on : ubuntu-latest
18- name : Deploy Snapshot artifacts
19- steps :
20- - uses : actions/checkout@v4
21-
22- - uses : actions/setup-java@v4
23- with :
24- distribution : ' temurin'
25- java-version : 17
26- cache : ' maven'
27- server-id : ' ossrh'
28- server-username : MAVEN_USERNAME
29- server-password : MAVEN_PASSWORD
30- gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
31- gpg-passphrase : MAVEN_GPG_PASSPHRASE
32-
33- - name : Deploy ${{steps.metadata.outputs.next-version}}
34- run : |
35- mvn -B clean deploy -DskipTests -DperformRelease=true -Drelease
36- env :
37- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
38- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
39- MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
23+ name : Deploy Snapshots
24+ uses : quarkiverse/.github/.github/workflows/perform-release.yml@main
25+ secrets : inherit
26+ with :
27+ ref : main
28+ version : 2.4.999-SNAPSHOT
You can’t perform that action at this time.
0 commit comments