commit
81c4409bd7
|
@ -334,80 +334,6 @@ jobs:
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: andymckay/cancel-action@0.5
|
uses: andymckay/cancel-action@0.5
|
||||||
|
|
||||||
release_artifacts:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
name: Release artifacts to OSS Sonatype
|
|
||||||
if: github.repository == 'Taskana/taskana' && ( startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master' ) && github.head_ref == ''
|
|
||||||
needs: [ test_frontend, test_e2e, test_backend ]
|
|
||||||
# as documented in the gpg manual (https://www.gnupg.org/documentation/manuals/gnupg/Invoking-GPG_002dAGENT.html)
|
|
||||||
# we should execute this command before interacting with gpg (otherwise gpg won't work)
|
|
||||||
env:
|
|
||||||
GPG_TTY: $(tty)
|
|
||||||
steps:
|
|
||||||
- name: Git checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # necessary for push back
|
|
||||||
# NOTE @v2 uses the token as an auth http header. Set it to
|
|
||||||
# a Personal Access Token instead of secrets.GITHUB_TOKEN
|
|
||||||
# so that tag pushes trigger repo push events.
|
|
||||||
# source: https://github.community/t/action-does-not-trigger-another-on-push-tag-action/17148/7
|
|
||||||
token: ${{ secrets.ADMIN_PERSONAL_ACCESS_TOKEN }}
|
|
||||||
- name: Set up JDK ${{ env.JAVA_VERSION }}
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: adopt
|
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.m2
|
|
||||||
key: ${{ runner.os }}-${{ env.CACHE_MAVEN_NAME }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
restore-keys: ${{ runner.os }}-${{ env.CACHE_MAVEN_NAME }}
|
|
||||||
- name: Download taskana artifacts
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ${{ env.ARTIFACTS_TASKANA_JARS_NAME }}
|
|
||||||
path: ${{ env.ARTIFACTS_TASKANA_JARS_PATH }}
|
|
||||||
- name: Download taskana-web dist artifact
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ${{ env.ARTIFACTS_TASKANA_WEB_NAME }}
|
|
||||||
path: ${{ env.ARTIFACTS_TASKANA_WEB_PATH }}
|
|
||||||
- name: Import GPG Key
|
|
||||||
run: echo -n "$GPG_KEY" | base64 --decode | gpg --batch --import
|
|
||||||
env:
|
|
||||||
GPG_KEY: ${{ secrets.GPG_KEY }}
|
|
||||||
- name: Change versions to match tag
|
|
||||||
run: ci/change_version.sh -m .
|
|
||||||
- name: Release artifacts to OSS Sonatype
|
|
||||||
run: |
|
|
||||||
./mvnw -B deploy -P $([[ "$GITHUB_REF" =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "release" || echo "snapshot") \
|
|
||||||
--settings ci/mvnsettings.xml -DskipTests -Dcheckstyle.skip -Djacoco.skip \
|
|
||||||
-pl :taskana-parent,\
|
|
||||||
:taskana-common-parent,:taskana-common-logging,:taskana-common,:taskana-common-security,\
|
|
||||||
:taskana-common-data,:taskana-common-test,\
|
|
||||||
:taskana-lib-parent,:taskana-core,:taskana-cdi,:taskana-spring,\
|
|
||||||
:taskana-rest-parent,:taskana-web,:taskana-rest-spring,\
|
|
||||||
:taskana-history-parent,:taskana-simplehistory-provider,:taskana-simplehistory-rest-spring,:taskana-loghistory-provider,\
|
|
||||||
:taskana-routing-parent,:taskana-spi-routing-dmn-router,:taskana-routing-rest
|
|
||||||
env:
|
|
||||||
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
|
|
||||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
|
||||||
MAVEN_USERNAME: 44pdzWD8
|
|
||||||
MAVEN_PASSWORD: eJZ25rsRdH7ZiePJO52JUy7LyVkNIgXxXEBmnTNH3aOM
|
|
||||||
- name: Update version to next snapshot and push back
|
|
||||||
run: |
|
|
||||||
ci/change_version.sh -i -m .
|
|
||||||
ci/update_taskana_dependency_for_wildfly.sh -i
|
|
||||||
ci/commitPoms.sh rest/taskana-rest-spring-example-wildfly/src/test/java/pro/taskana/example/wildfly/AbstractAccTest.java
|
|
||||||
env:
|
|
||||||
GH_EMAIL: ${{ secrets.GH_EMAIL }}
|
|
||||||
GH_USERNAME: ${{ secrets.GH_USERNAME }}
|
|
||||||
- name: Cancel workflow
|
|
||||||
if: failure()
|
|
||||||
uses: andymckay/cancel-action@0.5
|
|
||||||
|
|
||||||
deploy_to_azure:
|
deploy_to_azure:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
name: Deploy demo app to Microsoft Azure
|
name: Deploy demo app to Microsoft Azure
|
||||||
|
|
Loading…
Reference in New Issue