mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 19:50:12 +01:00
Update python-app.yml
This commit is contained in:
40
.github/workflows/python-app.yml
vendored
40
.github/workflows/python-app.yml
vendored
@@ -30,26 +30,40 @@ jobs:
|
|||||||
- name: Build Executable
|
- name: Build Executable
|
||||||
run: |
|
run: |
|
||||||
uv run nuitka --mode=app --include-module=raylib,moviepy,numpy,sounddevice,soundfile,tomlkit --noinclude-setuptools-mode=nofollow --noinclude-IPython-mode=nofollow --assume-yes-for-downloads PyTaiko.py
|
uv run nuitka --mode=app --include-module=raylib,moviepy,numpy,sounddevice,soundfile,tomlkit --noinclude-setuptools-mode=nofollow --noinclude-IPython-mode=nofollow --assume-yes-for-downloads PyTaiko.py
|
||||||
|
- name: Create Release Directory
|
||||||
|
run: |
|
||||||
|
mkdir -p release
|
||||||
|
cp -r Graphics Sounds Videos Songs config.toml release/
|
||||||
|
# Copy executable based on OS
|
||||||
|
if [ "${{ runner.os }}" == "Windows" ]; then
|
||||||
|
cp *.exe release/ 2>/dev/null || true
|
||||||
|
elif [ "${{ runner.os }}" == "macOS" ]; then
|
||||||
|
cp -r *.app release/ 2>/dev/null || true
|
||||||
|
else
|
||||||
|
cp *.bin release/ 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
- name: Create Zip Archive
|
||||||
|
run: |
|
||||||
|
cd release
|
||||||
|
if [ "${{ runner.os }}" == "Windows" ]; then
|
||||||
|
7z a ../PyTaiko-${{ runner.os }}-${{ runner.arch }}.zip *
|
||||||
|
else
|
||||||
|
zip -r ../PyTaiko-${{ runner.os }}-${{ runner.arch }}.zip *
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: PyTaiko-${{ runner.os }}-${{ runner.arch }}
|
name: PyTaiko-${{ runner.os }}-${{ runner.arch }}
|
||||||
path: |
|
path: release/
|
||||||
Graphics/*
|
- name: Upload Release
|
||||||
Sounds/*
|
|
||||||
Videos/*
|
|
||||||
Songs/*
|
|
||||||
config.toml
|
|
||||||
*.exe
|
|
||||||
*.bin
|
|
||||||
*.app/**/*
|
|
||||||
|
|
||||||
- name: Upload Zip
|
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||||
with:
|
with:
|
||||||
files: PyTaiko-${{ runner.os }}-${{ runner.arch }}.zip
|
files: PyTaiko-${{ runner.os }}-${{ runner.arch }}.zip
|
||||||
name: "PyTaiko [Latest Commit]"
|
name: "PyTaiko [Latest Commit]"
|
||||||
tag_name: "LatestCommit"
|
tag_name: "LatestCommit"
|
||||||
|
prerelease: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user