File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ # TODO: this workflow is designed to be a temporary copy of release-preview.yaml, to allow releasing
2+ # preview version from custom branch
3+ name : ' Release: new CLI preview version using JReleaser on demand'
4+
5+ on :
6+ workflow_dispatch :
7+
8+ permissions :
9+ id-token : write
10+ contents : write
11+
12+ jobs :
13+ release :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+
21+ - id : ' auth'
22+ name : ' Authenticate to Google Cloud'
23+ uses : ' google-github-actions/auth@v2'
24+ with :
25+ workload_identity_provider : ${{ secrets.GCP_STREAMX_RELEASES_WORKLOAD_IDENTITY_PROVIDER }}
26+ service_account : ${{ secrets.GCP_STREAMX_RELEASES_READ_SA }}
27+
28+ - name : Configure Git
29+ run : |
30+ git config --global user.email "[email protected] " 31+ git config --global user.name "${GITHUB_ACTOR}"
32+ mkdir -p ~/.ssh
33+ printf '%s\n' "${{ secrets.SSH_SECRET_KEY }}" > ~/.ssh/id_rsa
34+ chmod 0600 ~/.ssh/id_rsa
35+
36+ - name : Set up JDK 21
37+ uses : actions/setup-java@v3
38+ with :
39+ java-version : ' 21'
40+ distribution : ' temurin'
41+
42+ - name : Preview release prepare
43+ run : ./mvnw -B clean install -DskipTests -P preview
44+
45+ - name : Preview release perform
46+ env :
47+ JRELEASER_GITHUB_TOKEN : ${{ secrets.JRELEASER_PREVIEW_GITHUB_TOKEN }}
48+ JRELEASER_HOMEBREW_GITHUB_TOKEN : ${{ secrets.JRELEASER_HOMEBREW_PREVIEW_GITHUB_TOKEN }}
49+ JRELEASER_SCOOP_GITHUB_TOKEN : ${{ secrets.JRELEASER_SCOOP_PREVIEW_GITHUB_TOKEN }}
50+ run : |
51+ ./mvnw -pl distribution jreleaser:assemble jreleaser:full-release -P preview
You can’t perform that action at this time.
0 commit comments