github: try to fix uploading release again
This commit is contained in:
parent
6c62136f11
commit
881a7edb9f
1 changed files with 12 additions and 12 deletions
24
.github/workflows/c-cpp.yml
vendored
24
.github/workflows/c-cpp.yml
vendored
|
@ -34,12 +34,12 @@ jobs:
|
||||||
# targetos: motomagx
|
# targetos: motomagx
|
||||||
# targetarch: armv6
|
# targetarch: armv6
|
||||||
|
|
||||||
- os: ubuntu-20.04
|
# - os: ubuntu-20.04
|
||||||
targetos: nswitch
|
# targetos: nswitch
|
||||||
targetarch: arm64
|
# targetarch: arm64
|
||||||
- os: ubuntu-20.04
|
# - os: ubuntu-20.04
|
||||||
targetos: psvita
|
# targetos: psvita
|
||||||
targetarch: armv7hf
|
# targetarch: armv7hf
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
targetos: win32
|
targetos: win32
|
||||||
targetarch: amd64
|
targetarch: amd64
|
||||||
|
@ -94,28 +94,28 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build, flatpak]
|
needs: [build, flatpak]
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
steps:
|
steps:
|
||||||
- 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
|
||||||
working-directory: artifacts/
|
|
||||||
run: |
|
run: |
|
||||||
|
cd 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 ../
|
||||||
- name: Remove old release
|
- name: Remove old release
|
||||||
uses: FWGS/delete-tag-and-release@v0.2.1
|
uses: FWGS/delete-tag-and-release@v0.2.1-dev
|
||||||
with:
|
with:
|
||||||
delete_release: true
|
|
||||||
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) }}
|
||||||
|
delete_release: true
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Upload new release
|
- name: Upload new release
|
||||||
uses: FWGS/upload-release-action@2.5.0
|
uses: FWGS/upload-release-action@2.5.1
|
||||||
with:
|
with:
|
||||||
release_name: Xash3D FWGS Continuous ${{ github.ref_name }} Build
|
release_name: Xash3D FWGS Continuous ${{ github.ref_name }} Build
|
||||||
tag: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }}
|
tag: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue