-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (33 loc) · 1.1 KB
/
publish-crates.yml
File metadata and controls
37 lines (33 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish crates
on:
workflow_dispatch:
inputs:
run-build:
type: boolean
description: 'Build the workspace before release.'
required: false
default: true
run-tests:
type: boolean
description: 'Run tests before release.'
required: false
default: false
org-owner:
type: string
description: 'Organization to add as owner of the crates.'
required: false
default: 'github:matter-labs:crates-io'
jobs:
publish-crates:
name: Publish to crates.io
runs-on: matterlabs-ci-runner-highdisk
steps:
- name: Publish crates
uses: matter-labs/zksync-ci-common/.github/actions/publish-crates@v1
with:
slack_webhook: ${{ secrets.SLACK_WEBHOOK_RELEASES }} # Slack webhook for notifications
cargo_registry_token: ${{ secrets.CRATES_IO_TOKEN }} # Crates.io token for publishing
org_owner: ${{ inputs.org-owner }}
run_build: ${{ inputs.run-build }}
run_tests: ${{ inputs.run-tests }}
gh_token: ${{ secrets.GITHUB_TOKEN }}