diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d00edf..6212588 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,17 +1,18 @@ ---- -name: Generate Release +name: Release Version on: push: - tags: - - "v*" + branches: + - main jobs: - generate-release: - runs-on: "ubuntu-latest" - + release: + runs-on: ubuntu-latest 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: Setup Python uses: actions/setup-python@v2 with: @@ -31,6 +32,7 @@ jobs: repo_token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false draft: false + automatic_release_tag: "v${{ env.VERSION }}" files: | LICENSE.txt - dist/*.tar.gz + dist/*.tar.gz \ No newline at end of file diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml deleted file mode 100644 index 3cb9876..0000000 --- a/.github/workflows/tag.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Release Version - -on: - push: - branches: - - main - -jobs: - tag: - runs-on: ubuntu-latest - 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/github-tag-action@v5.5 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - custom_tag: ${{ env.VERSION }} - tag_prefix: v diff --git a/filament_scale_enhanced/fse_version.py b/filament_scale_enhanced/fse_version.py index 0bcc5d9..ae50f1f 100644 --- a/filament_scale_enhanced/fse_version.py +++ b/filament_scale_enhanced/fse_version.py @@ -1 +1 @@ -VERSION = "0.2.2" +VERSION = "0.2.3"