Merge pull request #32 from gooddata/LX-494 #32
Workflow file for this run
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
--- | |
on: | |
push: | |
tags: | |
- "gooddata-server-oauth2-*.*.*" | |
- "*.*.*" | |
jobs: | |
########################### | |
# BUILD & PUBLISH STAGE | |
########################### | |
test-kotlin: | |
runs-on: | |
group: infra1-runners-arc | |
labels: runners-cxa-xlarge | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cache | |
uses: actions/cache@v4 | |
with: | |
key: kotlin-build | |
path: .gradle | |
- name: Get Tag Name | |
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
- name: Publish to Nexus and to GitLab with Gradle Wrapper | |
env: | |
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | |
GITLAB_PACKAGES_UPLOAD_TOKEN: ${{ secrets.GITLAB_PACKAGES_UPLOAD_TOKEN }} | |
run: | | |
./gradlew clean publish -Pversion=$TAG_NAME --info |