Skip to content

Commit 6c1776b

Browse files
ci: fix release asset upload job
1 parent 01cdc15 commit 6c1776b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/upload-assets.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: upload
22

33
on:
4+
push:
5+
workflow_dispatch:
46
release:
57
types: [created]
68

@@ -32,24 +34,21 @@ jobs:
3234
with:
3335
profile: minimal
3436
toolchain: ${{ matrix.rust }}
35-
override: true
37+
override: false
3638

3739
- name: Add mingw64 to path for x86_64-gnu
3840
run: echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
3941
if: matrix.rust == 'nightly-x86_64-gnu'
4042
shell: bash
4143

42-
- name: Install cargo-make
43-
uses: actions-rs/cargo@v1
44-
with:
45-
command: install
46-
args: --force cargo-make
47-
4844
- name: Build release binaries
4945
uses: actions-rs/cargo@v1
5046
with:
51-
command: make
52-
args: release
47+
command: build
48+
args: --release
49+
env:
50+
CFG_RELEASE: nightly
51+
CFG_RELEASE_CHANNEL: nightly
5352

5453
- name: Build archive
5554
shell: bash
@@ -70,6 +69,7 @@ jobs:
7069
fi
7170
7271
- name: Upload Release Asset
72+
if: github.event_name == 'release'
7373
uses: actions/upload-release-asset@v1
7474
env:
7575
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)