From 3105074b0216473bc9349952835977a972428e40 Mon Sep 17 00:00:00 2001 From: shimwell Date: Wed, 23 Oct 2024 00:05:09 +0100 Subject: [PATCH] added stage --- .github/workflows/ci.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9b7d3c..3aafc52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,9 +14,12 @@ 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 @@ -24,8 +27,9 @@ jobs: 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 }} - \ No newline at end of file + - 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 }} \ No newline at end of file