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

Add publish job for crates.io #311

Merged
merged 1 commit into from
May 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to crates.io

on:
push:
tags:
- '*'
# this is the "entry point" for manually running a workflow
workflow_dispatch:

jobs:
publish:
name: Publish to crates.io
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: publish
run: cargo publish --token "${CRATES_IO_TOKEN}"
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}