27 lines
524 B
YAML
27 lines
524 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v[0-9]+.*
|
|
|
|
env:
|
|
RUSTFLAGS: -D warnings
|
|
RUST_BACKTRACE: 1
|
|
|
|
jobs:
|
|
create-release:
|
|
if: github.repository_owner == 'smol-rs'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Rust
|
|
run: rustup update stable
|
|
- run: cargo package
|
|
- uses: taiki-e/create-gh-release-action@v1
|
|
with:
|
|
changelog: CHANGELOG.md
|
|
branch: master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|