From eac34d2e7ed9f1e0e34f66248a262bd8cd823776 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sun, 23 Jun 2024 14:40:33 +0200 Subject: [PATCH] Re-enable crates.io publish step in release workflow --- .github/workflows/release.yaml | 64 +++++++++++++++++----------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 26e121e..d794e2b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,26 +27,26 @@ jobs: file: crates/lune/Cargo.toml field: package.version - # dry-run: - # name: Dry-run - # needs: ["init"] - # runs-on: ubuntu-latest - # steps: - # - name: Checkout repository - # uses: actions/checkout@v4 + dry-run: + name: Dry-run + needs: ["init"] + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 - # - name: Install Rust - # uses: dtolnay/rust-toolchain@stable + - name: Install Rust + uses: dtolnay/rust-toolchain@stable - # - name: Publish (dry-run) - # uses: katyo/publish-crates@v2 - # with: - # dry-run: true - # check-repo: true - # registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: Publish (dry-run) + uses: katyo/publish-crates@v2 + with: + dry-run: true + check-repo: true + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} build: - needs: ["init"] # , "dry-run"] + needs: ["init", "dry-run"] strategy: fail-fast: false matrix: @@ -112,7 +112,7 @@ jobs: release-github: name: Release (GitHub) runs-on: ubuntu-latest - needs: ["init", "build"] # , "dry-run", "build"] + needs: ["init", "dry-run", "build"] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -139,20 +139,20 @@ jobs: files: ./releases/*.zip draft: true - # release-crates: - # name: Release (crates.io) - # runs-on: ubuntu-latest - # needs: ["init", "dry-run", "build"] - # steps: - # - name: Checkout repository - # uses: actions/checkout@v4 + release-crates: + name: Release (crates.io) + runs-on: ubuntu-latest + needs: ["init", "dry-run", "build"] + steps: + - name: Checkout repository + uses: actions/checkout@v4 - # - name: Install Rust - # uses: dtolnay/rust-toolchain@stable + - name: Install Rust + uses: dtolnay/rust-toolchain@stable - # - name: Publish crates - # uses: katyo/publish-crates@v2 - # with: - # dry-run: false - # check-repo: true - # registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: Publish crates + uses: katyo/publish-crates@v2 + with: + dry-run: false + check-repo: true + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}