0.2.0 #12
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: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
artifact: | |
name: Artifact | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get Latest Release | |
id: previoustag | |
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | |
- name: Set Artifact Version | |
run: | | |
echo Artifact version: ${{ steps.previoustag.outputs.tag }} | |
echo "version=${{ steps.previoustag.outputs.tag }}" > gradle.properties | |
- name: Install Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
#Instead of manually configure caching of gradle, use an action which is provided. Details here: https://github.com/actions/setup-java | |
cache: gradle | |
- name: Gradle Build | |
id: build | |
run: ./gradlew build | |
- name: Publish Artifact | |
id: publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.REVIEWER_GITHUB_TOKEN }} | |
run: ./gradlew publishMavenPublicationToGitHubPackagesRepository |