Skip to content

Commit

Permalink
Test deploying artifacts with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed May 22, 2024
1 parent 91afa1d commit c522e70
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-deploy.yml
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

0 comments on commit c522e70

Please sign in to comment.