diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 73c10c9..dd63e3c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -81,8 +81,14 @@ jobs: cargo publish -p rapiddb --token ${{ secrets.CARGO_TOKEN }} cargo publish -p rapiddb-web --token ${{ secrets.CARGO_TOKEN }} - build-and-push: - runs-on: ubuntu-latest + publish-docker: + name: Publish on GitHub Packages and Docker Hub + needs: + - rustfmt + - clippy + - test + runs-on: ubuntu-22.04 + if: github.event_name == 'push' steps: - name: Checkout code diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e30dad3..b6e0c7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,9 +44,10 @@ jobs: - name: Test run: cargo test - build-and-push: - runs-on: ubuntu-latest - + publish-docker: + name: Publish on GitHub Packages and Docker Hub + runs-on: ubuntu-22.04 + if: github.event_name == 'push' steps: - name: Checkout code uses: actions/checkout@v2