From 8b93ff509063d1e2d0c108a0d8eb4b74e195f858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Espina?= Date: Tue, 26 Sep 2023 00:01:06 +0000 Subject: [PATCH] Reintroduce publish CI job (#3308) * Reintroduce publish CI job * Deny warnings on publish --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 151bf343a20..d5f190f097d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,45 @@ on: types: [published] jobs: + publish: + name: Publish crates + runs-on: ubuntu-latest + timeout-minutes: 60 + env: + RUSTFLAGS: -D warnings + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Install cargo-workspaces + uses: actions-rs/install@v0.1 + with: + crate: cargo-workspaces + + - name: Release + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + PATCH: ${{ github.run_number }} + shell: bash + run: | + git config --global user.email "runner@gha.local" + git config --global user.name "Github Action" + cargo workspaces publish \ + --from-git \ + --yes \ + --no-git-commit \ + skip + doc-publish: + name: Publish documentation + needs: publish runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -44,6 +82,7 @@ jobs: release-binaries: name: Publish binaries + needs: publish strategy: fail-fast: false matrix: