Skip to content

Commit

Permalink
chore: separate tagging from release for better release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
techman83 committed Apr 27, 2021
1 parent ec1835c commit 6294f7c
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,32 @@ on:
- filament_scale_enhanced/fse_version.py

jobs:
release:
tag:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.output_version.outputs.version }}
steps:
- uses: actions/checkout@v2
- name: collect_tag_version
run: |
echo VERSION=$(cat filament_scale_enhanced/fse_version.py | awk '{ print $3 }' | sed 's/"//g') >> $GITHUB_ENV
- name: Push tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ env.VERSION }}
tag_prefix: v
- name: Output Version
id: output_version
run: echo "::set-output name=version::${{ env.VERSION }}"

release:
runs-on: ubuntu-latest
needs: tag
steps:
- uses: actions/checkout@v2
with:
ref: "v${{ needs.tag.outputs.version }}"
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand All @@ -34,7 +53,7 @@ jobs:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: false
automatic_release_tag: "v${{ env.VERSION }}"
automatic_release_tag: "v${{ needs.tag.outputs.version }}"
files: |
LICENSE.txt
dist/Filament_Scale_Enhanced.zip

0 comments on commit 6294f7c

Please sign in to comment.