Skip to content

Commit aaade65

Browse files
author
Roland Peelen
authored
Merge pull request #7 from rolandpeelen/release-pipeline
Build Pipeline
2 parents cb2feb7 + 0431075 commit aaade65

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
2+
name: Release
23
on:
34
release:
4-
types:
5-
- created
5+
types: published
6+
67
jobs:
78
cancel-previous-runs:
89
name: Cancel Previous Runs
@@ -13,7 +14,7 @@ jobs:
1314
with:
1415
access_token: ${{ github.token }}
1516
release:
16-
name: release ${{ matrix.target }}
17+
name: Release ${{ matrix.os }}
1718
strategy:
1819
fail-fast: false
1920
matrix:
@@ -26,10 +27,13 @@ jobs:
2627
- uses: actions/checkout@v2
2728
with:
2829
ref: ${{ github.ref }}
29-
- name: Install Cargo
30-
run: curl https://sh.rustup.rs -sSf | sh
31-
- name: Build
32-
run: cargo build --release
30+
- uses: actions-rs/toolchain@v1
31+
with:
32+
toolchain: stable
33+
- uses: actions-rs/cargo@v1
34+
with:
35+
command: build
36+
args: --release
3337
- name: Upload binaries to release
3438
uses: svenstaro/upload-release-action@v2
3539
with:

0 commit comments

Comments
 (0)