File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,24 @@ jobs:
176176 env :
177177 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
178178
179+ publish-crates-io :
180+ if : startsWith(github.ref, 'refs/tags/')
181+ needs : [build]
182+ runs-on : ubuntu-22.04
183+ steps :
184+ - name : Checkout
185+ uses : actions/checkout@v4
186+ - name : Install Toolchain
187+ uses : dtolnay/rust-toolchain@4305c38b25d97ef35a8ad1f985ccf2d2242004f2 # stable
188+ with :
189+ toolchain : 1.88.0
190+ - name : Cache
191+ uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # pin@v2
192+ - name : Publish to crates.io
193+ run : cargo publish --package squawk
194+ env :
195+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
196+
179197 publish-docker :
180198 if : startsWith(github.ref, 'refs/tags/')
181199 needs : [build]
You can’t perform that action at this time.
0 commit comments