-
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.
3.x: Add ability to deploy snapshot builds (#7315)
* Add ability to deploy snapshot builds
- Loading branch information
Showing
3 changed files
with
93 additions
and
3 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,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: '17' | ||
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 17 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: ${{ env.JAVA_DISTRO }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
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