update workflow

This commit is contained in:
joshuaboud 2021-06-30 11:35:22 -03:00
parent 08b840d702
commit 01759c7ed4
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -6,7 +6,7 @@ on:
tags:
- 'v*.*.*'
jobs:
publish:
main:
runs-on: self-hosted
steps:
- name: Checkout
@ -21,11 +21,10 @@ jobs:
echo "VERSION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.version')" >> $GITHUB_ENV
echo "REVISION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.buildVersion')" >> $GITHUB_ENV
- name: GitHub Release
id: release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
name: ${{env.TITLE}} ${{env.VERSION}}-${{env.REVISION}}
name: ${{env.TITLE}} ${{env.VERSION}}
prerelease: ${{env.PRERELEASE}}
body_path: ${{github.workspace}}/CHANGELOG.md
files: |
@ -38,6 +37,4 @@ jobs:
run: update-repositories ${{github.workspace}}
- name: Publish Repository
if: startsWith(github.ref, 'refs/tags/')
run: publish-repo
run: publish-repo