Skip to content

Commit

Permalink
test windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixinol committed Jan 4, 2025
1 parent aa509db commit f67d452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/Pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit f67d452

Please sign in to comment.