Skip to content

Commit

Permalink
Merge pull request #22 from Mattherix/ci-auto-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattherix authored Jul 24, 2023
2 parents 9834e18 + e0e3ac5 commit fb96f76
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Rust

on: push
on:
push:
release:
types: [created]

env:
CARGO_TERM_COLOR: always
Expand All @@ -9,9 +12,7 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
Expand All @@ -30,3 +31,14 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

publish:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' }}
needs:
- build
steps:
- name: Login to crates.io
run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
- name: Publish crates to crates.io
run: cargo publish --all-features

0 comments on commit fb96f76

Please sign in to comment.