-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Jenkins: Archive artifacts * Add snapshot and release workflows
- Loading branch information
Showing
5 changed files
with
189 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Notes | ||
# - cannot run on Windows, as we use shell scripts | ||
|
||
name: "Release" | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'test-release-*' | ||
env: | ||
JAVA_VERSION: '21' | ||
JAVA_DISTRO: 'oracle' | ||
MAVEN_HTTP_ARGS: '-Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dmaven.wagon.http.retryHandler.count=3' | ||
|
||
concurrency: | ||
group: release-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
copyright: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK ${{ env.JAVA_VERSION }} | ||
uses: oracle-actions/setup-java@v1.3.1 | ||
with: | ||
website: ${{ env.JAVA_DISTRO }} | ||
release: ${{ env.JAVA_RELEASE }} | ||
cache: maven | ||
- name: Copyright | ||
run: etc/scripts/copyright.sh | ||
release: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-20.04 | ||
environment: release | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.SERVICE_ACCOUNT_TOKEN }} | ||
fetch-depth: '0' | ||
- name: Set up JDK ${{ env.JAVA_VERSION }} | ||
uses: oracle-actions/setup-java@v1.3.1 | ||
with: | ||
website: ${{ env.JAVA_DISTRO }} | ||
release: ${{ env.JAVA_RELEASE }} | ||
cache: maven | ||
- name: Release | ||
env: | ||
GPG_PASSPHRASE: ${{ secrets.HELIDON_GPG_PASSPHRASE }} | ||
GPG_PRIVATE_KEY: ${{ secrets.HELIDON_GPG_PRIVATE_KEY }} | ||
GPG_PUBLIC_KEY: ${{ secrets.HELIDON_GPG_PUBLIC_KEY }} | ||
MAVEN_SETTINGS: ${{ secrets.MAVEN_SETTINGS }} | ||
RELEASE_WORKFLOW: "true" | ||
run: | | ||
git config user.email "helidon-robot_ww@oracle.com" | ||
git config user.name "Helidon Robot" | ||
etc/scripts/release.sh release_build | ||
- name: Upload Staged Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: io-helidon-staged-artifacts | ||
path: parent/target/nexus-staging/ | ||
retention-days: 90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Perform a snapshot build and deploy to snapshot repository | ||
# Notes | ||
# - cannot run on Windows, as we use shell scripts | ||
|
||
name: "Snapshot Release" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
JAVA_VERSION: '21' | ||
JAVA_DISTRO: 'oracle' | ||
MAVEN_HTTP_ARGS: '-Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dmaven.wagon.http.retryHandler.count=3' | ||
|
||
concurrency: | ||
group: release-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
deploy: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-20.04 | ||
environment: release | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '0' | ||
- name: Set up JDK ${{ env.JAVA_VERSION }} | ||
uses: oracle-actions/setup-java@v1.3.1 | ||
with: | ||
website: ${{ env.JAVA_DISTRO }} | ||
release: ${{ env.JAVA_RELEASE }} | ||
cache: maven | ||
- name: Build and deploy | ||
env: | ||
MAVEN_SETTINGS: ${{ secrets.MAVEN_SETTINGS }} | ||
RELEASE_WORKFLOW: "true" | ||
run: | | ||
etc/scripts/release.sh deploy_snapshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters