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 87ded9c commit aa509db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/Pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ on:
permissions:
contents: write
actions: write

jobs:
build:
runs-on: windows-latest

outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Get Version from pyproject.toml
id: get-version
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"
- name: Get Last Commit Version
run: |
Expand Down Expand Up @@ -85,13 +87,16 @@ jobs:
- name: Set Is Pre-release
id: prerelease-check
run: |
if [[ "${{ env.version }}" =~ (a|b|dev|rc)$ ]]; then
version="${{ needs.build.outputs.version }}"
echo "version=$version" >> $GITHUB_ENV
if [[ "$version" =~ (a|b|dev|rc)$ ]]; 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
Expand All @@ -107,4 +112,4 @@ jobs:
if: env.pre_release == 'false'
uses: softprops/action-gh-release@v1
with:
files: dist/GameYamlSpider.zip
files: dist/GameYamlSpider.zip
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.0dev15"
version = "2.1.0dev16"
description = "A useful tool for generating Furrygameindex yaml files"
readme = "README.md"
authors = [
Expand Down

0 comments on commit aa509db

Please sign in to comment.