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