-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.25 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# .github/workflows/release.yml
on:
workflow_dispatch:
inputs:
tag:
description: 'Github Release Tag'
required: true
jobs:
release:
name: release ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
filename: 'beans-rs'
- os: windows-latest
filename: 'beans-rs.exe'
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: Upload binaries to release
uses: softprops/action-gh-release@v1
with:
files: target/release/${{ matrix.filename }}
tag_name: ${{ github.event.inputs.tag }}
draft: false
prerelease: true
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: https://sentry.kate.pet
with:
environment: production