Try deleting old releases.

This commit is contained in:
Christoffer Lerno
2025-03-28 00:37:39 +01:00
parent 9db316ddac
commit ea5fec80b0

View File

@@ -16,6 +16,7 @@ jobs:
build-msvc: build-msvc:
runs-on: windows-latest runs-on: windows-latest
if: ${{ false }}
strategy: strategy:
# Don't abort runners if a single one fails # Don't abort runners if a single one fails
fail-fast: false fail-fast: false
@@ -746,7 +747,7 @@ jobs:
release: release:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: [build-msvc, build-linux, build-mac, build-linux-ubuntu20] needs: [build-linux, build-mac, build-linux-ubuntu20]
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
steps: steps:
@@ -766,15 +767,15 @@ jobs:
- run: mv c3-ubuntu-20-Debug/c3-ubuntu-20-Debug.tar.gz c3-ubuntu-20-Debug/c3-ubuntu-20-debug.tar.gz - run: mv c3-ubuntu-20-Debug/c3-ubuntu-20-Debug.tar.gz c3-ubuntu-20-Debug/c3-ubuntu-20-debug.tar.gz
- run: mv c3-macos-Release/c3-macos-Release.zip c3-macos-Release/c3-macos.zip - run: mv c3-macos-Release/c3-macos-Release.zip c3-macos-Release/c3-macos.zip
- run: mv c3-macos-Debug/c3-macos-Debug.zip c3-macos-Debug/c3-macos-debug.zip - run: mv c3-macos-Debug/c3-macos-Debug.zip c3-macos-Debug/c3-macos-debug.zip
- run: echo "TAG_NAME=latest-0.7.0-prerelease-$(date +'%Y%m%d-%H%M')" >> $GITHUB_ENV - run: gh release delete latest-master --cleanup-tag -y
- id: create_release - id: create_release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ env.TAG_NAME }} tag_name: latest-0.7.0-prerelease
name: ${{ env.TAG_NAME }} name: latest-0.7.0-prerelease
draft: false draft: false
prerelease: true prerelease: true
files: | files: |