forked from dieki-n/Octoprint-Filament-Scale
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: separate tagging from release for better release notes
- Loading branch information
Showing
1 changed file
with
21 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 |