Skip to content

Commit 5df5f35

Browse files
committed
Automatically publish to crates.io on GH release.
1 parent 0415625 commit 5df5f35

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ jobs:
4444
- name: Coveralls upload
4545
uses: coverallsapp/github-action@master
4646
with:
47-
github-token: ${{ secrets.GITHUB_TOKEN }}
47+
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
4848
path-to-lcov: ${{ steps.coverage.outputs.report }}

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish after Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
run_after_release:
10+
name: crates.io publish
11+
runs-on: ubuntu-latest
12+
env:
13+
RUSTFLAGS: "-D warnings"
14+
RUSTDOCFLAGS: "-D warnings"
15+
steps:
16+
- name: Update sources
17+
run: sudo apt update
18+
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@stable
20+
with:
21+
toolchain: stable minus 2 releases
22+
- name: cargo publish
23+
run: |
24+
cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
25+
cargo publish --no-verify

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clojure-reader"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
resolver = "2"
66
authors = ["Kevin Nakamura <[email protected]>"]

0 commit comments

Comments
 (0)