diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..38435da --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }}