Skip to content

Commit

Permalink
Divide release into separate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinayagarwal committed Jul 22, 2024
1 parent 04c39bc commit 05778ac
Showing 1 changed file with 31 additions and 12 deletions.
43 changes: 31 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ on:
- '*'

jobs:
build:
name: Deploy
release:
runs-on: ubuntu-latest
steps:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install xmlstarlet
- name: Checkout
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -45,13 +39,16 @@ jobs:
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Create GitHub release
uses: softprops/action-gh-release@v1
commit-development-version:
runs-on: ubuntu-latest
needs: [ release ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
generate_release_notes: true

fetch-depth: 5
persist-credentials: false
- name: Commit next development version
if: steps.deploy.outputs.exit_code == 0
run: |
TAG=${GITHUB_REF/refs\/tags\//}
SUBSTRATE_VERSION=$(mvn help:evaluate -Dexpression=substrate.version -q -DforceStdout)
Expand All @@ -67,6 +64,28 @@ jobs:
env:
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

update-repositories:
runs-on: ubuntu-latest
needs: [ release ]
steps:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install xmlstarlet
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 5
persist-credentials: false
- name: Update projects
if: steps.deploy.outputs.exit_code == 0
run: |
Expand Down

0 comments on commit 05778ac

Please sign in to comment.