From 0a60c091c909d6fab4cd9f9461af18212122b811 Mon Sep 17 00:00:00 2001 From: dcodesdev <101001810+dcodesdev@users.noreply.github.com> Date: Sat, 25 May 2024 12:30:28 +0300 Subject: [PATCH] ci updated --- .github/workflows/publish.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6ebd712..55c0402 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -10,7 +10,7 @@ env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} jobs: - build: + test: runs-on: ubuntu-latest steps: @@ -23,6 +23,18 @@ jobs: - run: cargo test + publish: + runs-on: ubuntu-latest + needs: test + + steps: + - uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: Publish if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: cargo publish || true