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,12 +9,6 @@ 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:
|
||||||
@@ -139,17 +133,6 @@ 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:
|
||||||
@@ -168,36 +151,12 @@ jobs:
|
|||||||
pattern: pytaiko-*
|
pattern: pytaiko-*
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
- name: List Downloaded Files
|
- name: Upload Release
|
||||||
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: |
|
files: PyTaiko-*.zip
|
||||||
*.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