Skip to content

Commit 8e6faa2

Browse files
committed
Update deploy
1 parent d98b4f9 commit 8e6faa2

File tree

1 file changed

+36
-18
lines changed

1 file changed

+36
-18
lines changed

.github/workflows/deploy.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,43 @@
1-
name: Deployment
1+
# name: Deployment
22

3+
# on:
4+
# push:
5+
# tags:
6+
# - '*'
7+
8+
# jobs:
9+
# deploy:
10+
11+
# runs-on: ubuntu-latest
12+
13+
# steps:
14+
# - uses: actions/checkout@v1
15+
# - name: Install latest Rust stable toolchain
16+
# run: |
17+
# rustup update
18+
# rustup default stable
19+
# - name: Login on Crates.IO
20+
# env:
21+
# TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
22+
# run: cargo login $TOKEN
23+
# - name: Upload
24+
# run: |
25+
# cargo publish -p kurrentdb
26+
27+
28+
name: Publish to crates.io
329
on:
430
push:
5-
tags:
6-
- '*'
7-
31+
tags: ['*']
832
jobs:
9-
deploy:
10-
33+
publish:
1134
runs-on: ubuntu-latest
12-
35+
permissions:
36+
id-token: write
1337
steps:
14-
- uses: actions/checkout@v1
15-
- name: Install latest Rust stable toolchain
16-
run: |
17-
rustup update
18-
rustup default stable
19-
- name: Login on Crates.IO
38+
- uses: actions/checkout@v4
39+
- uses: rust-lang/crates-io-auth-action@v1
40+
id: auth
41+
- run: cargo publish
2042
env:
21-
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
22-
run: cargo login $TOKEN
23-
- name: Upload
24-
run: |
25-
cargo publish -p kurrentdb
43+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)