mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-04 23:43:44 +08:00
chore: alpha ci should remove old builds
This commit is contained in:
parent
c957ea7b24
commit
9f7ffb80e1
27
.github/workflows/alpha.yml
vendored
27
.github/workflows/alpha.yml
vendored
@ -207,6 +207,15 @@ jobs:
|
||||
echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV
|
||||
echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV
|
||||
|
||||
- name: Delete Old Release
|
||||
uses: ncipollo/release-action@v1.16.0
|
||||
with:
|
||||
tag: alpha
|
||||
removeArtifacts: true
|
||||
allowUpdates: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
@ -299,6 +308,15 @@ jobs:
|
||||
Rename-Item $file.FullName $newName
|
||||
}
|
||||
|
||||
- name: Delete Old Release
|
||||
uses: ncipollo/release-action@v1.16.0
|
||||
with:
|
||||
tag: alpha
|
||||
removeArtifacts: true
|
||||
allowUpdates: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
@ -366,6 +384,15 @@ jobs:
|
||||
Created at ${{ env.BUILDTIME }}.
|
||||
EOF
|
||||
|
||||
- name: Delete Old Release
|
||||
uses: ncipollo/release-action@v1.16.0
|
||||
with:
|
||||
tag: alpha
|
||||
removeArtifacts: true
|
||||
allowUpdates: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user