Skip to content

Release thoth

Release thoth #54

Workflow file for this run

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 }}