Skip to content

Commit

Permalink
generate release notes as a part of release workflow (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinayagarwal authored Jul 19, 2024
1 parent 8e721fa commit 7e7e022
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- '*'

jobs:
build:
release:
name: Deploy
runs-on: ubuntu-latest
steps:
Expand All @@ -16,8 +16,9 @@ jobs:
persist-credentials: false

- name: Setup Java 11
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11

- name: Grant execute permission for gradlew
Expand All @@ -44,14 +45,6 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}

- name: Release Client plugins
if: steps.deploy.outputs.exit_code == 0
run: |
TAG=${GITHUB_REF/refs\/tags\//}
bash $GITHUB_WORKSPACE/.github/scripts/release-plugins.sh $TAG $PAT
env:
PAT: ${{ secrets.PAT }}

- name: Commit next development version
if: steps.deploy.outputs.exit_code == 0
run: |
Expand All @@ -63,4 +56,23 @@ jobs:
git commit gradle.properties -m "Prepare development of $newVersion"
git push https://gluon-bot:[email protected]/$GITHUB_REPOSITORY HEAD:master
env:
PAT: ${{ secrets.PAT }}
PAT: ${{ secrets.PAT }}

release-notes:
runs-on: ubuntu-latest
needs: [ release ]
steps:
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true

release-gluonfx-plugins:
runs-on: ubuntu-latest
needs: [ release ]
steps:
- run: |
TAG=${GITHUB_REF/refs\/tags\//}
bash $GITHUB_WORKSPACE/.github/scripts/release-plugins.sh $TAG $PAT
env:
PAT: ${{ secrets.PAT }}

0 comments on commit 7e7e022

Please sign in to comment.