From f67d452a5cafde6e48d1c226f13587a2412268c0 Mon Sep 17 00:00:00 2001 From: kaesinol Date: Sat, 4 Jan 2025 15:36:45 +0800 Subject: [PATCH] test windows --- .github/workflows/Pyinstaller.yml | 17 +++-------------- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/Pyinstaller.yml b/.github/workflows/Pyinstaller.yml index 4f935ee..4ff09fd 100644 --- a/.github/workflows/Pyinstaller.yml +++ b/.github/workflows/Pyinstaller.yml @@ -26,7 +26,7 @@ jobs: run: | $version = (Get-Content pyproject.toml | Select-String -Pattern '^version = "(.*)"' | ForEach-Object { $_.Matches.Groups[1].Value }) echo "version=$version" >> $env:GITHUB_ENV - echo "::set-output name=version::$version" + echo "version=$version" >> $GITHUB_OUTPUT # Using the new GITHUB_OUTPUT environment file - name: Get Last Commit Version run: | @@ -89,27 +89,16 @@ jobs: run: | version="${{ needs.build.outputs.version }}" echo "version=$version" >> $GITHUB_ENV - if [[ "$version" =~ (a|b|dev|rc)$ ]]; then + if [[ "$version" =~ (a|b|dev|rc)\d? ]]; then echo "This is a pre-release version. Skipping GitHub release." echo "pre_release=true" >> $GITHUB_ENV else echo "This is a stable release." echo "pre_release=false" >> $GITHUB_ENV fi - - - name: Create Release - if: env.pre_release == 'false' - uses: actions/create-release@v1 - with: - tag_name: v${{ env.version }} - release_name: Release v${{ env.version }} - draft: false - prerelease: ${{ env.pre_release }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload Release Assets if: env.pre_release == 'false' uses: softprops/action-gh-release@v1 with: files: dist/GameYamlSpider.zip + tag_name: v${{ env.version }} diff --git a/pyproject.toml b/pyproject.toml index 726b3fd..0380959 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ all = [ [project] name = "gameyamlspiderandgenerator" -version = "2.1.0dev16" +version = "2.1.0.1" description = "A useful tool for generating Furrygameindex yaml files" readme = "README.md" authors = [