File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ release :
5
+ types : [published] # Only publish to crates.io when we formally publish a release
6
+ # For more on how to formally release on Github, read https://help.github.com/en/articles/creating-releases
7
+
8
+ jobs :
9
+ publish :
10
+ runs-on : ${{ matrix.os }}
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-latest]
14
+
15
+ steps :
16
+ - uses : hecrj/setup-rust-action@v1
17
+ with :
18
+ rust-version : ${{ matrix.rust }}
19
+ - uses : actions/checkout@master
20
+ - name : Login to crates.io
21
+ run : cargo login $CRATES_IO_TOKEN
22
+ env :
23
+ CRATES_IO_TOKEN : ${{ secrets.crates_io_token }} # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets
24
+ - name : Dry run publish opaque-ke
25
+ run : cargo publish --dry-run --manifest-path Cargo.toml
26
+ - name : Publish opaque-ke
27
+ run : cargo publish --manifest-path Cargo.toml
28
+ env :
29
+ CARGO_REGISTRY_TOKEN : ${{ secrets.crates_io_token }}
You can’t perform that action at this time.
0 commit comments