updated publish-cli-version workflow: added Install Protoc step in th… #13
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-cli-version | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: | |
| - v[0-9]+.[0-9]+.[0-9]+ | |
| jobs: | |
| Publish: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: rust:latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install Protoc | |
| run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
| - name: test version (dry-run) and metadata checks | |
| working-directory: ./cli | |
| run: cargo publish --dry-run | |
| - name: Publish on crates.io | |
| working-directory: ./cli | |
| run: cargo publish | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{secrets.CF_TOKEN_CARGO_API}} |