diff --git a/.gitea/workflows/release-win.yml b/.gitea/workflows/release-win.yml new file mode 100644 index 0000000..db47ba4 --- /dev/null +++ b/.gitea/workflows/release-win.yml @@ -0,0 +1,35 @@ +name: Windows build & release + +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + build: + runs-on: 'windows-latest' + + steps: + - uses: actions/checkout@v4 + - name: Setup Python 3.12 + uses: actions/setup-python@v4 + with: + python-version: '3.12' + + - name: Install uv + run: | + pip install uv + + - name: Build executable + run: uv run pyinstaller build-win.spec + + # - name: Create ZIP archive + # run: Compress-Archive -Path ./dist/wunderland-generator.exe -Destination ./dist/wunderland-generator.zip + + # - name: Release ZIP archive + # uses: softprops/action-gh-release@v1 + # with: + # files: ./dist/wunderland-generator.zip + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file