Merge pull request #729 from gofractally/bump-version #30
Workflow file for this run
This file contains 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: On Tag - Release Draft | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
- 'v*.*.*-*' | |
jobs: | |
build-psibase: | |
name: Run Builds | |
uses: ./.github/workflows/ubuntu-builder.yml | |
prerelease-check: | |
name: Prerelease Check | |
runs-on: ubuntu-latest | |
outputs: | |
prerelease: ${{ steps.set-prerelease-var.outputs.prerelease }} | |
steps: | |
- name: Check prerelease condition (tag ${{ github.ref_name }} contains '-') | |
id: set-prerelease-var | |
shell: bash | |
run: | | |
if [[ ${{ github.ref_name }} == *-* ]]; then | |
echo prerelease=true >>$GITHUB_OUTPUT | |
else | |
echo prerelease=false >>$GITHUB_OUTPUT | |
fi | |
- name: PRERELEASE=${{ steps.set-prerelease-var.outputs.prerelease }} | |
id: output | |
run: true | |
generate-changelog: | |
name: Generate changelog | |
uses: ./.github/workflows/generate-changelog.yml | |
with: | |
endtag: ${{ github.ref_name }} | |
create-psibase-release: | |
name: Release draft - ${{github.ref_name}} | |
runs-on: ubuntu-latest | |
needs: | |
- build-psibase | |
- prerelease-check | |
- generate-changelog | |
steps: | |
- name: Download build artifacts | |
uses: actions/download-artifact@v3 | |
- name: Create new Github Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
psidk-ubuntu-2004/psidk-ubuntu-2004.tar.gz | |
psidk-ubuntu-2204/psidk-ubuntu-2204.tar.gz | |
psidk-ubuntu-2404/psidk-ubuntu-2404.tar.gz | |
psidk-book/psidk-book.tar.gz | |
draft: true | |
prerelease: ${{needs.prerelease-check.outputs.prerelease}} | |
name: ${{ github.ref_name }} | |
tag_name: ${{ github.ref }} | |
body: ${{ needs.generate-changelog.outputs.changelog }} |