File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 55 push :
66 branches : [main]
77
8+ permissions :
9+ contents : write
10+
811jobs :
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)
You can’t perform that action at this time.
0 commit comments