Skip to content

Commit da96d3f

Browse files
committed
Create GitHub release automatically
1 parent e649b66 commit da96d3f

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v[0-9]+.*
7+
8+
env:
9+
RUSTFLAGS: -D warnings
10+
RUST_BACKTRACE: 1
11+
12+
jobs:
13+
create-release:
14+
if: github.repository_owner == 'smol-rs'
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Install Rust
19+
run: rustup update stable
20+
- run: cargo package
21+
- uses: taiki-e/create-gh-release-action@v1
22+
with:
23+
changelog: CHANGELOG.md
24+
branch: master
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[package]
22
name = "async-task"
3+
# When publishing a new version:
4+
# - Update CHANGELOG.md
5+
# - Create "v4.x.y" git tag
36
version = "4.0.3"
47
authors = ["Stjepan Glavina <[email protected]>"]
58
edition = "2018"

0 commit comments

Comments
 (0)