diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 12df5da4..06fa88a8 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -98,27 +98,25 @@ jobs: if: ${{ github.event_name == 'push' }} 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 }} + run: gh release delete -y --cleanup-tag ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Fetch artifacts - uses: actions/download-artifact@v3.0.1 + uses: actions/download-artifact@v4 with: path: artifacts/ - name: Repackage binaries and allow GitHub to process removed release for few seconds run: | - cd artifacts/ + pushd artifacts/ for i in artifact-* su.xash.Engine.*; do mv "$i"/* . rm -rf "$i" done ls -R . - cd ../ + popd sleep 20s - name: Upload new release - uses: FWGS/action-gh-release@v0.1.15 + uses: FWGS/action-gh-release@v2.0.8 with: name: Xash3D FWGS Continuous ${{ github.ref_name }} Build tag_name: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }}