Skip to content

Commit b3c2979

Browse files
committed
feat: add crate publish
1 parent 6ab8bef commit b3c2979

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
command: test
1919

2020
build:
21-
name: Rust project
21+
name: Build
2222
needs: test
2323
runs-on: ubuntu-latest
2424
steps:
@@ -41,3 +41,17 @@ jobs:
4141
with:
4242
files: |
4343
target/release/pct
44+
45+
crate:
46+
name: Crate
47+
needs: test
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v2
51+
- uses: actions-rs/toolchain@v1
52+
with:
53+
toolchain: stable
54+
override: true
55+
- uses: katyo/publish-crates@v1
56+
with:
57+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.words": [
3+
"katyo",
34
"pathdiff",
45
"softprops",
56
"subcommand",

0 commit comments

Comments
 (0)