Skip to content

Commit d9234e3

Browse files
authored
Update release.yml
1 parent a2fe706 commit d9234e3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches: [main]
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
name: Build and Release
@@ -51,17 +54,15 @@ jobs:
5154
if [ "${{ matrix.os }}" = "windows-latest" ]; then
5255
mv andromeda.exe ${{ matrix.asset-name }}
5356
else
54-
mv andromeda ${{ matrix.asset-name }}
55-
fi
56-
57-
- name: Upload Binary to Release (Tag Only)
57+
- name: Upload Binary to Release
58+
if: github.ref == 'refs/heads/main'
5859
uses: svenstaro/upload-release-action@v2
5960
with:
6061
repo_token: ${{ secrets.GITHUB_TOKEN }}
6162
file: target/${{ matrix.rust-target }}/release/${{ matrix.asset-name }}
6263
asset_name: ${{ matrix.asset-name }}
63-
draft: false
64-
tag: ${{ github.ref }}
64+
draft: true
65+
tag: latest
6566
overwrite: true
6667

6768
- name: Upload Binary as Artifact (Main Branch)

0 commit comments

Comments
 (0)