Skip to content

Commit cf5f518

Browse files
committed
Added a cratesio publishing workflow for tags
1 parent df6da79 commit cf5f518

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

Diff for: .github/workflows/release.yml

+26
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]+.[0-9]+.[0-9]+"
7+
8+
jobs:
9+
create-release:
10+
name: Release crate
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 1
16+
17+
- name: Setup Rust toolchain
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
22+
- name: Publish crate
23+
uses: actions-rs/cargo@v1
24+
with:
25+
command: publish
26+
args: --token ${{ secrets.CRATES_IO_TOKEN }}

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repository = "https://github.com/omerbenamram/pyo3-file"
66
license = "MIT/Apache-2.0"
77
readme = "README.md"
88

9-
version = "0.6.0"
9+
version = "0.7.0"
1010
authors = ["Omer Ben-Amram <[email protected]>"]
1111
edition = "2018"
1212

0 commit comments

Comments
 (0)