Create GitHub release automatically

This commit is contained in:
Taiki Endo 2022-01-08 22:26:15 +09:00
parent 23c7adeca9
commit 7aac9c0b24
2 changed files with 29 additions and 0 deletions

26
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,26 @@
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 }}

View File

@ -1,5 +1,8 @@
[package]
name = "atomic-waker"
# When publishing a new version:
# - Update CHANGELOG.md
# - Create "v1.x.y" git tag
version = "1.0.0"
authors = [
"Stjepan Glavina <stjepang@gmail.com>",