-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (40 loc) · 1.36 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release Jooq async
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 "jooq-async-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 }}