Skip to content

Commit

Permalink
added stage
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Oct 22, 2024
1 parent 8a1779c commit 3105074
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,22 @@ jobs:

steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo build --verbose
- run: cargo test --verbose
- name: Set up Rust
run: rustup update stable && rustup default stable
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose

publish:
name: Publish to crates.io
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest

steps:
- name: Publish
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo publish --dry-run --verbose --locked --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
run: rustup update stable && rustup default stable
- name: Publish to crates.io
run: cargo publish --dry-run --verbose --locked --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 3105074

Please sign in to comment.