Skip to content

.github/workflows/release.yml #16

.github/workflows/release.yml

.github/workflows/release.yml #16

Workflow file for this run

# .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