Merge pull request #193 from rabbitmq/new-seshat #34
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - v1.* | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: CHECKOUT | |
| uses: actions/checkout@v3 | |
| with: | |
| path: osiris | |
| - name: ASSERT VERSIONS | |
| id: versions | |
| working-directory: osiris | |
| run: | | |
| VERSION_ERLANG_MK="$(sed -ne 's/PROJECT_VERSION = \(.*\)/\1/p' Makefile)" | |
| if [[ "${{ github.ref_name }}" != "v$VERSION_ERLANG_MK" ]]; then | |
| echo "Version in Makefile ($VERSION_ERLANG_MK) does not match tag (${{ github.ref_name }})" | |
| exit 1 | |
| fi | |
| - name: FETCH THE SOURCE ARCHIVE | |
| run: | | |
| curl \ | |
| -L \ | |
| -o osiris-${{ steps.versions.outputs.version }}.tar.gz \ | |
| https://github.com/${{ github.repository }}/archive/${{ github.ref }}.tar.gz | |
| - name: CREATE RELEASE | |
| id: create-release | |
| uses: ncipollo/[email protected] | |
| with: | |
| token: ${{ secrets.REPO_SCOPED_TOKEN }} | |
| allowUpdates: true | |
| artifactErrorsFailBuild: true | |
| updateOnlyUnreleased: true | |
| generateReleaseNotes: true | |
| artifacts: >- | |
| osiris-${{ steps.versions.outputs.version }}.tar.gz |