Skip to content

Commit

Permalink
fix publish workflow (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
SVilgelm committed Mar 18, 2024
1 parent 46d5a68 commit c9c14d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@ env:
jobs:
build:
uses: ./.github/workflows/rust.yaml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
cache-targets: false
cache-all-crates: true
- name: Install tools
run: cargo install-tools
- name: Publish
run: |
cargo login ${{ secrets.CRATES_IO_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ "main" ]
workflow_call:
secrets:
CODECOV_TOKEN:
required: true

env:
CARGO_TERM_COLOR: always
Expand Down

0 comments on commit c9c14d5

Please sign in to comment.