Skip to content

Commit

Permalink
ci: fix release asset upload job
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Oct 19, 2021
1 parent 01cdc15 commit 6c1776b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/upload-assets.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: upload

on:
push:
workflow_dispatch:
release:
types: [created]

Expand Down Expand Up @@ -32,24 +34,21 @@ jobs:
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
override: false

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

- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --force cargo-make

- name: Build release binaries
uses: actions-rs/cargo@v1
with:
command: make
args: release
command: build
args: --release
env:
CFG_RELEASE: nightly
CFG_RELEASE_CHANNEL: nightly

- name: Build archive
shell: bash
Expand All @@ -70,6 +69,7 @@ jobs:
fi
- name: Upload Release Asset
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 6c1776b

Please sign in to comment.