]> code.octet-stream.net Git - hashgood/blob - .github/workflows/release.yml
Update deps
[hashgood] / .github / workflows / release.yml
1 name: Release
2
3 on:
4 push:
5 tags:
6 - v[0-9]+.*
7
8 jobs:
9 create-release:
10 name: Create GitHub release
11 if: github.repository_owner == 'thombles'
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v2
15 - uses: taiki-e/create-gh-release-action@v1
16 with:
17 changelog: CHANGELOG.md
18 env:
19 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
21 upload-assets:
22 needs: create-release
23 strategy:
24 matrix:
25 os: [ubuntu-latest, macos-latest, windows-latest]
26 include:
27 - os: windows-latest
28 features: paste
29 - os: macos-latest
30 features: paste
31 runs-on: ${{ matrix.os }}
32 steps:
33 - uses: actions/checkout@v2
34 - uses: taiki-e/upload-rust-binary-action@v1
35 with:
36 bin: hashgood
37 features: ${{ matrix.features || '' }}
38 env:
39 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}