Skip to content

Release v6.28 for commit #22

Release v6.28 for commit

Release v6.28 for commit #22

Workflow file for this run

# Prepares a commit for release. This will pull the artifacts from the commit tagged for staging
# THIS SHOULD BE THE SAME COMMIT THAT WAS FIRST TAGGED FOR STAGING
name: Release workflow
on:
push:
tags:
- 'v*.*'
- '!v*.*-docker'
run-name: Release ${{ github.ref_name }} for commit ${{ github.event.workflow_run.head_commit.id }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0
# Downloads the pre-release release to copy the artifacts used for testing
- uses: robinraju/[email protected]
with:
tag: 'staging'
tarBall: true
zipBall: true
fileName: '*'
# Deletes the pre-release staging release as it is now promoted to release
- uses: dev-drprasad/[email protected]
with:
tag_name: staging
delete_release: true
github_token: ${{ secrets.GITHUB_TOKEN }}
# Tars the project for artifact storage
- name: Tar project
run: |
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
tar -zcvf wres-${{ github.ref_name }}-all-src.tar.gz *
# Generates the release
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
Release.txt
md5checksum.txt
sha256checksum.txt
*.zip
*.tar.gz