diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3f0f6a..435dd5a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,8 @@ jobs: release: name: Release runs-on: ubuntu-latest + environment: + name: crates-io permissions: contents: write steps: @@ -35,26 +37,26 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} - # pr: - # name: PR - # runs-on: ubuntu-latest - # concurrency: - # group: release-${{ github.ref }} - # cancel-in-progress: false - # steps: - # - uses: actions/checkout@v4 - # with: - # fetch-depth: 0 - # submodules: recursive - # - uses: dtolnay/rust-toolchain@stable - # - uses: arduino/setup-protoc@v3 - # with: - # repo-token: ${{ secrets.GITHUB_TOKEN }} - # - run: cargo build - # - uses: MarcoIeni/release-plz-action@v0.5.94 - # with: - # command: release-pr - # env: - # RUST_LOG: debug - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + pr: + name: PR + runs-on: ubuntu-latest + concurrency: + group: release-${{ github.ref }} + cancel-in-progress: false + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: recursive + - uses: dtolnay/rust-toolchain@stable + - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - run: cargo build + - uses: MarcoIeni/release-plz-action@v0.5.94 + with: + command: release-pr + env: + RUST_LOG: debug + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} diff --git a/release-plz.toml b/release-plz.toml index 104ad84..91d3b8f 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -1,5 +1,5 @@ [workspace] -release_always = true +release_always = false [[package]] name = "substrait"