fix publish workflow 5 #7
This file contains 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
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
# just for manual testing | |
workflow_dispatch: | |
name: Publish | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install toolchain | |
run: rustup show | |
- name: Dump Github Context | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
run: | | |
echo "CARGO_REGISTRY_TOKEN:" "$CARGO_REGISTRY_TOKEN" | |
- run: cargo publish --token "$CARGO_REGISTRY_TOKEN" -p starknet-types-core | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |