Merge pull request #158 from galaxyproject/minimum-marsupial #72
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: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Compile | |
run: | | |
make | |
- name: Get version | |
id: version | |
run: | | |
VERSION="$(bash gxadmin -v)" | |
VERSION_NEXT=$(( VERSION + 1 )) | |
echo "::set-output name=version::${VERSION_NEXT}" | |
TS="$(date +%s)" | |
echo "::set-output name=timestamp::${TS}" | |
echo "::set-output name=tag::v${VERSION}-preview-${TS}" | |
- name: Extract changelog | |
run: | | |
echo "**This is an automated pre-release**" > body.md | |
echo "" >> body.md | |
bash gxadmin meta whatsnew >> body.md | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "gxadmin" | |
artifactContentType: text/x-shellscript | |
bodyFile: body.md | |
commit: main | |
draft: true | |
tag: ${{ steps.version.outputs.tag }} |