We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9777cc commit c44587dCopy full SHA for c44587d
.github/workflows/publish.yml
@@ -7,6 +7,26 @@ env:
7
REGISTRY: ghcr.io
8
IMAGE_NAME: ${{ github.repository }}
9
jobs:
10
+ publish-crate:
11
+ name: Publish crate to crates.io
12
+ runs-on: ubuntu-latest
13
+ permissions: {}
14
+ steps:
15
+ - name: Checkout sources
16
+ uses: actions/checkout@v3
17
+
18
+ - name: Install stable toolchain
19
+ uses: actions-rs/toolchain@v1
20
+ with:
21
+ profile: minimal
22
+ toolchain: 1.66.1
23
+ override: true
24
25
+ - name: Publish crate to crates.io
26
+ run: cargo publish --token ${CRATES_TOKEN}
27
+ env:
28
+ CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
29
30
build-and-push-image:
31
name: Build and publish a Docker image
32
runs-on: ubuntu-latest
0 commit comments