5.0.0-beta #9
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: Bygg og publiser bibliotek for release | |
on: | |
release: | |
types: | |
- published | |
permissions: | |
packages: write | |
jobs: | |
publish-lib: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Sjekk ut koden | |
uses: actions/checkout@v4 | |
- name: Sett opp java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Sett opp gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Bygg bibliotek | |
run: ./gradlew build | |
- name: Publish packages | |
run: ./gradlew -Plib_version="${{ github.event.release.name }}" publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |