File tree Expand file tree Collapse file tree 1 file changed +36
-18
lines changed
Expand file tree Collapse file tree 1 file changed +36
-18
lines changed Original file line number Diff line number Diff line change 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
329on :
430 push :
5- tags :
6- - ' *'
7-
31+ tags : ['*']
832jobs :
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 }}
You can’t perform that action at this time.
0 commit comments