mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-14 21:20:26 +01:00
github: attempt to avoid release draft issue by sleeping for 20s
This commit is contained in:
parent
588d080a63
commit
cadad6ce34
15
.github/workflows/c-cpp.yml
vendored
15
.github/workflows/c-cpp.yml
vendored
@ -95,11 +95,17 @@ jobs:
|
|||||||
needs: [build, flatpak]
|
needs: [build, flatpak]
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Remove old release
|
||||||
|
uses: FWGS/delete-tag-and-release@v0.2.1-dev
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }}
|
||||||
|
delete_release: true
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Fetch artifacts
|
- name: Fetch artifacts
|
||||||
uses: actions/download-artifact@v3.0.1
|
uses: actions/download-artifact@v3.0.1
|
||||||
with:
|
with:
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
- name: Repackage binaries
|
- name: Repackage binaries and allow GitHub to process removed release for few seconds
|
||||||
run: |
|
run: |
|
||||||
cd artifacts/
|
cd artifacts/
|
||||||
for i in artifact-* su.xash.Engine.*; do
|
for i in artifact-* su.xash.Engine.*; do
|
||||||
@ -108,12 +114,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
ls -R .
|
ls -R .
|
||||||
cd ../
|
cd ../
|
||||||
- name: Remove old release
|
sleep 20s
|
||||||
uses: FWGS/delete-tag-and-release@v0.2.1-dev
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }}
|
|
||||||
delete_release: true
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Upload new release
|
- name: Upload new release
|
||||||
uses: FWGS/action-gh-release@v0.1.15
|
uses: FWGS/action-gh-release@v0.1.15
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user