gha: update more actions, use gh delete release instead of delete-tag-and-release
This commit is contained in:
parent
85540855c3
commit
e7477c0abf
1 changed files with 7 additions and 9 deletions
16
.github/workflows/c-cpp.yml
vendored
16
.github/workflows/c-cpp.yml
vendored
|
@ -98,27 +98,25 @@ jobs:
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Remove old release
|
- name: Remove old release
|
||||||
uses: FWGS/delete-tag-and-release@v0.2.1-dev
|
run: gh release delete -y --cleanup-tag ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }}
|
||||||
with:
|
env:
|
||||||
tag_name: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
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@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
- name: Repackage binaries and allow GitHub to process removed release for few seconds
|
- name: Repackage binaries and allow GitHub to process removed release for few seconds
|
||||||
run: |
|
run: |
|
||||||
cd artifacts/
|
pushd artifacts/
|
||||||
for i in artifact-* su.xash.Engine.*; do
|
for i in artifact-* su.xash.Engine.*; do
|
||||||
mv "$i"/* .
|
mv "$i"/* .
|
||||||
rm -rf "$i"
|
rm -rf "$i"
|
||||||
done
|
done
|
||||||
ls -R .
|
ls -R .
|
||||||
cd ../
|
popd
|
||||||
sleep 20s
|
sleep 20s
|
||||||
- name: Upload new release
|
- name: Upload new release
|
||||||
uses: FWGS/action-gh-release@v0.1.15
|
uses: FWGS/action-gh-release@v2.0.8
|
||||||
with:
|
with:
|
||||||
name: Xash3D FWGS Continuous ${{ github.ref_name }} Build
|
name: Xash3D FWGS Continuous ${{ github.ref_name }} Build
|
||||||
tag_name: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }}
|
tag_name: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue