Skip to content

Commit 60287e2

Browse files
committed
chore: add publish workflow
1 parent 832d026 commit 60287e2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+'
8+
9+
jobs:
10+
publish:
11+
if: github.repository == 'reiniiriarios/archive-bot' && startsWith(github.ref, 'refs/tags/')
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- uses: actions-rs/toolchain@v1
18+
with:
19+
toolchain: stable
20+
override: true
21+
22+
- name: Publish crates
23+
uses: katyo/publish-crates@v1
24+
with:
25+
registry-token: ${{ secrets.CRATES_TOKEN }}

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ version = "0.1.0"
44
authors = ["Emma Litwa-Vulcu <[email protected]>"]
55
repository = "https://github.com/reiniiriarios/archive-bot"
66
description = "Slack bot helper for managing outdated channels."
7+
keywords = ["slack", "slackbot", "slack-bot"]
78
license = "GPL-3.0+"
89
edition = "2021"
10+
exclude = ["/examples", "/.github"]
911

1012
[dependencies]
1113
chrono = "0.4.23"

0 commit comments

Comments
 (0)