Skip to content

Commit

Permalink
publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlbauer committed Oct 27, 2023
1 parent 0222c0a commit 952cefc
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Cargo Build and Test
on:
push:
branches: [ "main" ]
pull_request:

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: WHAM - latest
name: WHAM Test
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -22,3 +27,17 @@ jobs:
- run: cargo build --verbose
- run: cargo test --verbose

publish:
name: WHAM Publish
runs-on: ubuntu-latest
needs: [build_and_test]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
dry-run: ${{ github.event_name != 'push' }}

0 comments on commit 952cefc

Please sign in to comment.