Skip to content

Commit 8e72cdf

Browse files
committed
Add release workflow
1 parent 8225a2c commit 8e72cdf

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
jobs:
6+
release:
7+
name: release ${{ matrix.target }}
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- target: x86_64-unknown-linux-musl
15+
archive: tar.gz tar.xz tar.zst
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- uses: dtolnay/rust-toolchain@stable
21+
with:
22+
components: clippy, rustfmt
23+
24+
- name: release artifact
25+
uses: rust-build/[email protected]
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
RUSTTARGET: ${{ matrix.target }}
30+
ARCHIVE_TYPES: ${{ matrix.archive }}
31+
EXTRA_FILES: "README.md LICENSE"

0 commit comments

Comments
 (0)