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

Commit

Permalink
Auto merge of #311 - dario23:crates-io-publish, r=JohnTitor
Browse files Browse the repository at this point in the history
Add publish job for crates.io

Triggered by tag push or manually from the actions interface.

fixes #300
  • Loading branch information
bors committed May 29, 2022
2 parents 2406ebf + 805bba4 commit 8997aac
Showing 1 changed file with 21 additions and 0 deletions.
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 }}

0 comments on commit 8997aac

Please sign in to comment.