Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Publish to Cargo

Publish to Cargo #5

Workflow file for this run

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 }}