-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test deploying artifacts with GitHub Actions
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 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,38 @@ | ||
name: Test deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- ci/test-deploy | ||
|
||
# env: | ||
# instead of embedded Maven use local Maven CLI | ||
# HALE_BUILD_MAVEN_EMBEDDED: 'false' | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Maven | ||
uses: s4u/setup-maven-action@6d44c18d67d9e1549907b8815efa5e4dada1801b # v1.12.0 | ||
# uses: stempler/setup-maven-action@feat/cache-save-always | ||
with: | ||
java-version: 17 | ||
java-distribution: temurin | ||
maven-version: 3.9.6 | ||
# Note: currently not working because of https://github.com/actions/cache/issues/1315 | ||
# Fix in https://github.com/actions/cache/pull/1325 not merged yet | ||
# cache-save-always: true | ||
|
||
- name: Clean | ||
run: ./build.sh clean | ||
working-directory: ./build | ||
|
||
- name: Deploy Artifacts | ||
env: | ||
WETF_ARTIFACTORY_USER: ${{ secrets.WETF_ARTIFACTORY_USER }} | ||
WETF_ARTIFACTORY_PASSWORD: ${{ secrets.WETF_ARTIFACTORY_PASSWORD }} | ||
JAVA_TOOL_OPTIONS: '-Dmaven.wagon.httpconnectionManager.ttlSeconds=120' | ||
run: ./build.sh deployArtifacts | ||
working-directory: ./build |