Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Divide release into separate jobs #512

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading