Skip to content

Commit 60dd87d

Browse files
committed
Wire crates.io composite action in CI.yml
1 parent b7fe019 commit 60dd87d

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,33 @@ jobs:
331331
push: ${{ env.PUSH_PACKAGES }}
332332
tags: ${{ steps.meta.outputs.tags }}
333333

334+
publish-crate-test:
335+
strategy:
336+
fail-fast: false
337+
matrix:
338+
package: [ mithril-stm ]
339+
340+
runs-on: ubuntu-22.04
341+
needs:
342+
- build
343+
- test
344+
- run-test-lab
345+
- check
346+
steps:
347+
- name: Checkout sources
348+
uses: actions/checkout@v3
349+
350+
- name: Install stable toolchain
351+
uses: dtolnay/rust-toolchain@master
352+
with:
353+
toolchain: stable
354+
355+
- name: Publish package to crates.io
356+
uses: ./.github/workflows/actions/publish-crate-package
357+
with:
358+
dry_run: "true"
359+
package: ${{ matrix.package }}
360+
334361
unstable-release:
335362
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith('refs/heads/hotfix', github.ref))
336363
runs-on: ubuntu-22.04
@@ -493,4 +520,5 @@ jobs:
493520
loki_auth_password: ${{ secrets.LOKI_AUTH_PASSWORD }}
494521
loki_ingest_host: ${{ vars.LOKI_INGEST_HOST }}
495522
loki_ingest_username: ${{ secrets.LOKI_INGEST_USERNAME }}
496-
loki_ingest_password: ${{ secrets.LOKI_INGEST_PASSWORD }}
523+
loki_ingest_password: ${{ secrets.LOKI_INGEST_PASSWORD }}
524+

0 commit comments

Comments
 (0)