From 613e9c457fbe89117c3c98c9c8801f388d489a70 Mon Sep 17 00:00:00 2001 From: Iban Eguia Moraza Date: Thu, 27 Jul 2023 10:28:39 +0200 Subject: [PATCH] Added back release workflow --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bdb35053554..5d87a379915 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,40 @@ on: types: [published] jobs: + publish: + name: publish + 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: + needs: publish runs-on: ubuntu-latest timeout-minutes: 60 steps: