tmp: dry-run crate publishing #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish crates | |
| permissions: | |
| contents: read | |
| # Manual workflow to publish crates to crates.io | |
| # can be used in case of failed release-please workflow | |
| # to release crates after a bugfix | |
| on: | |
| push: | |
| branches: | |
| - di/publish-crates | |
| 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 }} | |
| dry_run: true |