-
Notifications
You must be signed in to change notification settings - Fork 94
34 lines (34 loc) · 1.05 KB
/
release.yml
File metadata and controls
34 lines (34 loc) · 1.05 KB
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
name: Release
on:
workflow_dispatch:
inputs:
grails_version:
description: 'Grails Version (eg: 4.0.10)'
required: true
jobs:
release:
runs-on: ubuntu-latest
env:
GIT_USER_NAME: grails-build
GIT_USER_EMAIL: grails-build@users.noreply.github.com
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Record Release
run: ./gradlew --no-daemon recordRelease -PreleaseVersion=${{ github.event.inputs.grails_version }}
- name: Commit Release
run: |
git config user.name ${GIT_USER_NAME}
git config user.email ${GIT_USER_EMAIL}
git add conf/releases.yml
git commit -m "Update conf/releases.yml" -m "Add ${RELEASE} to Grails Versions list"
git push
env:
RELEASE: ${{ github.event.inputs.grails_version }}