Merge pull request #34 from boschglobal/bugfix-33 #2
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
name: deploy-release | |
concurrency: production | |
on: | |
push: | |
tags: | |
- 'release/v*' | |
permissions: | |
packages: write | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Set Release Version | |
run: ./gradlew setReleaseVersion # Do not chain this command because it writes into a file which needs to be re-read inside the next gradle command | |
- name: Publish Library | |
run: ./gradlew publishReleasePublicationToGithubPackagesRepository | |
-Pgpr.repository=${{ github.repository }} | |
-Pgpr.user=${{ github.actor }} | |
-Pgpr.token=${{ secrets.GITHUB_TOKEN }} |