Skip to content

Commit eb4903f

Browse files
committed
Delete latest release before creating it
1 parent 3e291ff commit eb4903f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ jobs:
44
build_linux:
55
name: Build Linux x86_64
66
runs-on: ubuntu-latest
7-
outputs:
8-
sha7: ${{ steps.sha7.sha7 }}
97
steps:
108
- name: Checkout
119
uses: actions/checkout@v2
@@ -26,10 +24,6 @@ jobs:
2624
with:
2725
name: linux64.bin
2826
path: target/release/rust-deploy-test
29-
- name: Export SHA7
30-
id: sha7
31-
run: |
32-
echo ::set-output name=sha7::$(git rev-parse --short HEAD)
3327
build_mac:
3428
name: Build macOS x86_64
3529
runs-on: macos-latest
@@ -99,13 +93,21 @@ jobs:
9993
cd ..
10094
10195
ls
96+
- name: Delete latest release
97+
uses: author/action-rollback@stable
98+
if: ${{ github.ref == 'refs/heads/main' }}
99+
with:
100+
tag: latest
101+
env:
102+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102103
- name: Release latest
103104
uses: softprops/action-gh-release@v1
104105
if: ${{ github.ref == 'refs/heads/main' }}
105106
with:
106-
name: Latest commit (${{needs.build_linux.outputs.sha7}})
107+
name: Latest
107108
tag_name: latest
108109
prerelease: true
110+
body: Bleeding edge stuff!
109111
files: |
110112
rust-deploy-test.linux.tar.bz2
111113
rust-deploy-test.macos.tar.bz2

0 commit comments

Comments
 (0)