Skip to content

Commit

Permalink
add publish ci (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
wckdouglas authored Jun 27, 2023
1 parent 3d02916 commit 0365add
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,25 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

publish:
needs: build-and-test-rust
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
pull-requests: write
contents: write
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 0365add

Please sign in to comment.