ci: update workflows to hopefully get rid of intermittent failures

This commit is contained in:
Tyler Wilding
2026-07-19 10:59:06 -04:00
committed by Ty
parent 73be6820ff
commit de3b3764d4
3 changed files with 65 additions and 24 deletions
+2 -23
View File
@@ -1,6 +1,6 @@
name: Pack patches
on: [push, pull_request]
on: [pull_request]
jobs:
pack:
@@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7
- name: Create archives
run: |
@@ -20,24 +20,3 @@ jobs:
name: cheats
path: ./patches.zip
if-no-files-found: error
release:
needs: [pack]
name: Publish release
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Download artifacts
uses: actions/download-artifact@v8
- name: Create a new release
env:
GH_TOKEN: ${{ github.token }}
run: |
git push origin --delete latest || true
gh release delete latest --yes || true
git tag latest
git push origin tag latest
gh release create latest --latest --title "Latest Build"
gh release upload latest ./patches.zip
+62
View File
@@ -0,0 +1,62 @@
name: Release Patches
on:
push:
branches:
- main
# This ensures that only one workflow at a time is going to be attempting to
# mutate the tag / etc
#
# It will also cancel in progress runs (so if two PRs quickly merge, only
# the most recent will run)
concurrency:
group: release-updating
cancel-in-progress: true
permissions:
contents: write
jobs:
release:
name: Publish release
if: github.repository == 'PCSX2/pcsx2_patches'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Create archives
run: |
7z a -r patches.zip ./patches/*
- name: Update tag
env:
GH_TOKEN: ${{ github.token }}
run: |
echo "Pushing latest changes"
git push origin --delete latest || true
echo "Removing existing tag"
gh release delete latest --yes || true
echo "Creating tag"
git tag latest
echo "Pushing tag"
git push origin tag latest
- name: Create a new release
env:
GH_TOKEN: ${{ github.token }}
run: |
echo "Creating release"
for i in {1..10}; do
if gh release create latest \
--latest \
--title "Latest Build"; then
break
fi
echo "Retrying release creation..."
sleep 3
done
echo "Uploading asset"
gh release upload latest ./patches.zip
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
timeout-minutes: 1
steps:
- name: Checkout Repo
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Validate all patches
run: |