forked from YoEight/eventstore-rs
-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (38 loc) · 870 Bytes
/
deploy.yml
File metadata and controls
44 lines (38 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# name: Deployment
# on:
# push:
# tags:
# - '*'
# jobs:
# deploy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Install latest Rust stable toolchain
# run: |
# rustup update
# rustup default stable
# - name: Login on Crates.IO
# env:
# TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
# run: cargo login $TOKEN
# - name: Upload
# run: |
# cargo publish -p kurrentdb
name: Publish to crates.io
on:
push:
tags: ['*']
jobs:
publish:
runs-on: ubuntu-latest
environment: CRATES_IO_TOKEN
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- run: cargo publish -p kurrentdb
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}