Skip to content

Commit

Permalink
publish crate when pushing a tag
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed Sep 12, 2023
1 parent f30f912 commit 7ec438d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ jobs:
run: |
sudo apt-get install skopeo umoci capnproto
- run: make lint check
- name: publish
if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit 7ec438d

Please sign in to comment.