Release thoth #42
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 thoth | |
on: | |
workflow_dispatch: | |
inputs: | |
releaseVersion: | |
description: 'release version' | |
required: true | |
nextVersion: | |
description: 'next version' | |
required: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: release gradle | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "thoth-github-actions" | |
./gradlew release -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=${{ github.event.inputs.releaseVersion }} -Prelease.newVersion=${{ github.event.inputs.nextVersion }} | |
- name: push tag | |
uses: ad-m/github-push-action@master | |
with: | |
branch: master | |
tags: true | |
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
- name: Create a Release | |
id: create_release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
with: | |
tag_name: v${{ github.event.inputs.releaseversion }} | |
release_name: v${{ github.event.inputs.releaseversion }} |