This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
Publish to Cargo #5
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
name: Publish to Cargo | |
on: | |
workflow_run: | |
workflows: | |
- "Build for common platforms" | |
types: [completed] | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
name: "publish" | |
environment: Cargo | |
steps: | |
- uses: actions/checkout@master | |
# Use caching to speed up your build | |
- name: Cache publish-action bin | |
id: cache-publish-action | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-publish-action | |
with: | |
path: ~/.cargo | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-v0.2.3 | |
- name: Install publish-action | |
if: steps.cache-publish-action.outputs.cache-hit != 'true' | |
run: cargo install publish-action --version=0.2.3 | |
- name: Run publish-action | |
id: publish-action | |
run: publish-action | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |