mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
Update python-app.yml
This commit is contained in:
45
.github/workflows/python-app.yml
vendored
45
.github/workflows/python-app.yml
vendored
@@ -9,6 +9,12 @@ permissions:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
issues: write
|
issues: write
|
||||||
repository-projects: write
|
repository-projects: write
|
||||||
|
|
||||||
|
# Prevent concurrent releases
|
||||||
|
concurrency:
|
||||||
|
group: release
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -133,6 +139,17 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Verify Zip Created
|
||||||
|
run: |
|
||||||
|
if [ -f "PyTaiko-${{ runner.os }}-${{ runner.arch }}.zip" ]; then
|
||||||
|
echo "✅ Zip file created successfully"
|
||||||
|
ls -lh PyTaiko-${{ runner.os }}-${{ runner.arch }}.zip
|
||||||
|
else
|
||||||
|
echo "❌ Zip file not found!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Upload Build Artifacts
|
- name: Upload Build Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -151,12 +168,36 @@ jobs:
|
|||||||
pattern: pytaiko-*
|
pattern: pytaiko-*
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Upload Release
|
- name: List Downloaded Files
|
||||||
|
run: |
|
||||||
|
echo "Current directory:"
|
||||||
|
pwd
|
||||||
|
echo "Files in current directory:"
|
||||||
|
ls -la
|
||||||
|
echo "Searching for zip files:"
|
||||||
|
find . -name "*.zip" -type f -ls
|
||||||
|
|
||||||
|
- name: Delete Existing Release
|
||||||
|
continue-on-error: true
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
gh release delete latest --yes --repo ${{ github.repository }} || echo "Release doesn't exist yet"
|
||||||
|
|
||||||
|
- name: Wait for Release Deletion
|
||||||
|
run: sleep 5
|
||||||
|
|
||||||
|
- name: Create New Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: PyTaiko-*.zip
|
files: |
|
||||||
|
*.zip
|
||||||
|
**/*.zip
|
||||||
name: "PyTaiko [Rolling Release]"
|
name: "PyTaiko [Rolling Release]"
|
||||||
tag_name: "latest"
|
tag_name: "latest"
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
fail_on_unmatched_files: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user