Skip to content

Commit

Permalink
Merge pull request #9 from jmbhughes/adds-release-action
Browse files Browse the repository at this point in the history
Create publish.yaml
  • Loading branch information
jmbhughes committed Aug 12, 2023
2 parents bebb1cc + 4c664b4 commit 655aac4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: cargo publish

on:
release:
types: [published]

permissions:
contents: read

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit 655aac4

Please sign in to comment.