Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elmomoilanen committed Jun 10, 2023
1 parent f086f88 commit c9f7ccd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: publish

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
qa:
uses: ./.github/workflows/main.yml
publish:
name: Publish a new release to crates.io
needs: qa
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Publish Crate
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

0 comments on commit c9f7ccd

Please sign in to comment.