Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Commit b718e2b

Browse files
committed
fix publishing to crates.io
Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent aeacf33 commit b718e2b

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

Diff for: .github/workflows/releaser.yaml

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: goreleaser
1+
name: releaser
22

33
on:
44
push:
@@ -13,25 +13,24 @@ permissions:
1313

1414
jobs:
1515
publish-crates:
16-
name: Publish Creates
16+
name: Publish to crates.io
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v2
2121
with:
2222
fetch-depth: 0
23-
- uses: actions/download-artifact@v3
24-
with:
25-
name: tkn-watch-x86_64-unknown-linux-gnu
26-
path: target/linux_amd64/tkn-watch
27-
- uses: actions/download-artifact@v3
23+
- name: Install stable toolchain
24+
uses: actions-rs/toolchain@v1
2825
with:
29-
name: tkn-watch-x86_64-apple-darwin
30-
path: target/darwin_amd64/tkn-watch
26+
profile: minimal
27+
toolchain: stable
28+
override: true
29+
30+
- uses: Swatinem/rust-cache@v1
3131
- uses: katyo/publish-crates@v1
3232
with:
3333
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
34-
3534
build:
3635
# runs-on: ubuntu-latest
3736
name: ${{ matrix.job.os }} (${{ matrix.job.target }})
@@ -91,7 +90,3 @@ jobs:
9190
env:
9291
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9392
AUR_PRIVATE_KEY: ${{ secrets.AUR_PRIVATE_KEY }}
94-
95-
- uses: katyo/publish-crates@v1
96-
with:
97-
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)