Release thoth #61
This file contains hidden or 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@v4 | |
| with: | |
| token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: release gradle | |
| run: | | |
| git config --local user.email "thoth-github-actions@users.noreply.github.com" | |
| 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/create-release@v1.1.4 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| with: | |
| tag_name: v${{ github.event.inputs.releaseversion }} | |
| release_name: v${{ github.event.inputs.releaseversion }} |