From 8e6e36605e60ba5eb1e5dc8ac0343a2d4891d9cd Mon Sep 17 00:00:00 2001 From: Diogo Matsubara Date: Fri, 8 Nov 2024 14:55:15 +0100 Subject: [PATCH] chore: enable publish workflows (#26) --- .github/workflows/release.yml | 116 +++++++++++++++++----------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 457be4f..bebcb70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,67 +73,67 @@ jobs: ^zenoh_plugin_remote_api(2)?\.dll$ secrets: inherit - # cargo: - # needs: tag - # name: Publish Cargo crates - # uses: eclipse-zenoh/ci/.github/workflows/release-crates-cargo.yml@main - # with: - # repo: ${{ github.repository }} - # live-run: ${{ inputs.live-run || false }} - # branch: ${{ needs.tag.outputs.branch }} - # # - In dry-run mode, we need to publish eclipse-zenoh/zenoh before this - # # repository, in which case the version of zenoh dependecies are left as - # # is and thus point to the main branch of eclipse-zenoh/zenoh. - # # - In live-run mode, we assume that eclipse-zenoh/zenoh is already - # # published as this workflow can't be responsible for publishing it - # unpublished-deps-patterns: ${{ !(inputs.live-run || false) && 'zenoh.*' || '' }} - # unpublished-deps-repos: ${{ !(inputs.live-run || false) && 'eclipse-zenoh/zenoh' || '' }} - # secrets: inherit + cargo: + needs: tag + name: Publish Cargo crates + uses: eclipse-zenoh/ci/.github/workflows/release-crates-cargo.yml@main + with: + repo: ${{ github.repository }} + live-run: ${{ inputs.live-run || false }} + branch: ${{ needs.tag.outputs.branch }} + # - In dry-run mode, we need to publish eclipse-zenoh/zenoh before this + # repository, in which case the version of zenoh dependecies are left as + # is and thus point to the main branch of eclipse-zenoh/zenoh. + # - In live-run mode, we assume that eclipse-zenoh/zenoh is already + # published as this workflow can't be responsible for publishing it + unpublished-deps-patterns: ${{ !(inputs.live-run || false) && 'zenoh.*' || '' }} + unpublished-deps-repos: ${{ !(inputs.live-run || false) && 'eclipse-zenoh/zenoh' || '' }} + secrets: inherit - # debian: - # name: Publish Debian packages - # needs: [tag, build-debian] - # uses: eclipse-zenoh/ci/.github/workflows/release-crates-debian.yml@main - # with: - # no-build: true - # live-run: ${{ inputs.live-run || false }} - # version: ${{ needs.tag.outputs.version }} - # repo: ${{ github.repository }} - # branch: ${{ needs.tag.outputs.branch }} - # installation-test: false - # secrets: inherit + debian: + name: Publish Debian packages + needs: [tag, build-debian] + uses: eclipse-zenoh/ci/.github/workflows/release-crates-debian.yml@main + with: + no-build: true + live-run: ${{ inputs.live-run || false }} + version: ${{ needs.tag.outputs.version }} + repo: ${{ github.repository }} + branch: ${{ needs.tag.outputs.branch }} + installation-test: false + secrets: inherit - # homebrew: - # name: Publish Homebrew formulae - # needs: [tag, build-standalone] - # uses: eclipse-zenoh/ci/.github/workflows/release-crates-homebrew.yml@main - # with: - # no-build: true - # repo: ${{ github.repository }} - # live-run: ${{ inputs.live-run || false }} - # version: ${{ needs.tag.outputs.version }} - # branch: ${{ needs.tag.outputs.branch }} - # artifact-patterns: | - # ^libzenoh_plugin_remote_api(2)?\.dylib$ - # formulae: | - # zenoh-plugin-remote-api - # secrets: inherit + homebrew: + name: Publish Homebrew formulae + needs: [tag, build-standalone] + uses: eclipse-zenoh/ci/.github/workflows/release-crates-homebrew.yml@main + with: + no-build: true + repo: ${{ github.repository }} + live-run: ${{ inputs.live-run || false }} + version: ${{ needs.tag.outputs.version }} + branch: ${{ needs.tag.outputs.branch }} + artifact-patterns: | + ^libzenoh_plugin_remote_api(2)?\.dylib$ + formulae: | + zenoh-plugin-remote-api + secrets: inherit - # eclipse: - # name: Publish artifacts to Eclipse downloads - # needs: [tag, build-standalone] - # uses: eclipse-zenoh/ci/.github/workflows/release-crates-eclipse.yml@main - # with: - # no-build: true - # live-run: ${{ inputs.live-run || false }} - # version: ${{ needs.tag.outputs.version }} - # repo: ${{ github.repository }} - # branch: ${{ needs.tag.outputs.branch }} - # artifact-patterns: | - # ^libzenoh_plugin_remote_api(2)?\.(dylib|so)$ - # ^zenoh_plugin_remote_api(2)?\.dll$ - # name: zenoh-plugin-remote-api - # secrets: inherit + eclipse: + name: Publish artifacts to Eclipse downloads + needs: [tag, build-standalone] + uses: eclipse-zenoh/ci/.github/workflows/release-crates-eclipse.yml@main + with: + no-build: true + live-run: ${{ inputs.live-run || false }} + version: ${{ needs.tag.outputs.version }} + repo: ${{ github.repository }} + branch: ${{ needs.tag.outputs.branch }} + artifact-patterns: | + ^libzenoh_plugin_remote_api(2)?\.(dylib|so)$ + ^zenoh_plugin_remote_api(2)?\.dll$ + name: zenoh-plugin-remote-api + secrets: inherit github: name: Publish artifacts to GitHub Releases