File tree 2 files changed +36
-0
lines changed
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Publish Cargo to crates.io whenever a new tag is pushed. Tags are pushed by
2
+ # the Rust release process (https://github.com/rust-lang/promote-release),
3
+ # which will cause this workflow to run.
4
+
5
+ name : Release
6
+ on :
7
+ push :
8
+ tags :
9
+ - " **"
10
+
11
+ # Prevent multiple releases from starting at the same time.
12
+ concurrency :
13
+ group : release
14
+
15
+ jobs :
16
+ crates-io :
17
+ name : Publish on crates.io
18
+ runs-on : ubuntu-latest
19
+ permissions :
20
+ contents : read
21
+
22
+ # Gain access to the crates.io publishing token.
23
+ environment :
24
+ name : release
25
+
26
+ steps :
27
+ - name : Checkout the source code
28
+ uses : actions/checkout@v4
29
+
30
+ - name : Publish Cargo to crates.io
31
+ run : ./publish.py
32
+ env :
33
+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
Original file line number Diff line number Diff line change 15
15
from urllib .error import HTTPError
16
16
17
17
18
+ # Whenever you add a new crate to this list that does NOT start with "cargo-"
19
+ # you must reach out to the infra team to add the crate to the list of crates
20
+ # allowed to be published from the "cargo CI" crates.io token.
18
21
TO_PUBLISH = [
19
22
'credential/cargo-credential' ,
20
23
'credential/cargo-credential-libsecret' ,
You can’t perform that action at this time.
0 commit comments