diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 675fa22..c4e4714 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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) @@ -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: |