Skip to content

Commit ee54f47

Browse files
committed
Add publish workflow
1 parent 602696a commit ee54f47

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
# Pattern matched against refs/tags
4+
tags:
5+
- 'v*' # Push events to every tag containing v
6+
workflow_dispatch:
7+
8+
name: Publish
9+
10+
jobs:
11+
publish:
12+
name: Publish
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@v2
17+
18+
- name: Install stable toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: stable
23+
override: true
24+
25+
- name: Run tests
26+
run: cargo test
27+
28+
- name: Publish
29+
run: cargo publish --token ${CRATES_TOKEN}
30+
env:
31+
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "croner"
3-
version = "0.0.1"
3+
version = "0.0.2"
44
edition = "2021"
55
license = "MIT"
66
description = "A cron parser and job scheduler library for Rust"

0 commit comments

Comments
 (0)