From 99445624fbf64c68f510fa0dac4e69fd2a59e1e7 Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Mon, 25 Sep 2023 15:49:56 -0600 Subject: [PATCH 1/2] Reintroduce publish CI job --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 151bf343a20..f808caeb78e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,43 @@ on: types: [published] jobs: + publish: + name: Publish crates + runs-on: ubuntu-latest + timeout-minutes: 60 + 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 +80,7 @@ jobs: release-binaries: name: Publish binaries + needs: publish strategy: fail-fast: false matrix: From b4396d3163cb8c708f7308c498048a607039064e Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Mon, 25 Sep 2023 16:59:49 -0600 Subject: [PATCH 2/2] Deny warnings on publish --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f808caeb78e..d5f190f097d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,8 @@ jobs: name: Publish crates runs-on: ubuntu-latest timeout-minutes: 60 + env: + RUSTFLAGS: -D warnings steps: - name: Checkout repository uses: actions/checkout@v3