Release new version of artifact #3
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 new version of artifact | |
on: | |
workflow_dispatch: | |
inputs: | |
revision_scope: | |
description: 'What the revision of the application is, according to SemVer. Valid options are major, minor and patch.' | |
required: true | |
default: 'patch' | |
jobs: | |
run-gradle-test: | |
runs-on: ubuntu-latest | |
name: Run release build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Fetch tags for Reckon usage | |
run: git fetch --unshallow --tags | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
cache: "gradle" | |
- name: Assemble and publish | |
run: | | |
./gradlew \ | |
-PgithubUsername="${{ secrets.REPOSITORY_USERNAME }}" \ | |
-PgithubPassword="${{ secrets.REPOSITORY_TOKEN }}" \ | |
-Prelease="true" \ | |
-Penvironment=production \ | |
-Preckon.stage="final" \ | |
-Preckon.scope="${{ inputs.revision_scope }}" \ | |
assemble publish reckonTagCreate reckonTagPush \ | |
--refresh-dependencies --no-daemon \ | |
-x test |