From 9fb0ecf2ed4ab541bb4afb10759706c181f1cd18 Mon Sep 17 00:00:00 2001 From: Colin Casey Date: Wed, 2 Aug 2023 10:52:38 -0300 Subject: [PATCH] Update release.yml to use the new combined release workflow (#123) Switches to the new combined workflow approach added in: https://github.com/heroku/languages-github-actions/pull/91 --- .github/workflows/release.yml | 77 +++-------------------------------- 1 file changed, 6 insertions(+), 71 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 656d5f4..b4bd54a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,79 +3,14 @@ name: Release Buildpacks on: workflow_dispatch: -permissions: - contents: write - pull-requests: write - jobs: - detect: - name: Detecting Buildpacks - uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-detect.yml@main - - package: - name: ${{ matrix.buildpack_id }} - needs: [ detect ] - strategy: - fail-fast: false - matrix: - include: ${{ fromJSON(needs.detect.outputs.buildpacks) }} - uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-package.yml@main - with: - buildpack_id: ${{ matrix.buildpack_id }} - buildpack_dir: ${{ matrix.buildpack_dir }} - buildpack_version: ${{ matrix.buildpack_version }} - buildpack_artifact_prefix: ${{ matrix.buildpack_artifact_prefix }} - - publish-docker: - name: ${{ matrix.buildpack_id }} - needs: [ detect, package ] - strategy: - fail-fast: false - matrix: - include: ${{ fromJSON(needs.detect.outputs.buildpacks) }} - uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-publish-docker.yml@main - with: - buildpack_id: ${{ matrix.buildpack_id }} - buildpack_version: ${{ matrix.buildpack_version }} - buildpack_artifact_prefix: ${{ matrix.buildpack_artifact_prefix }} - docker_repository: ${{ matrix.docker_repository }} - secrets: - docker_hub_user: ${{ secrets.DOCKER_HUB_USER }} - docker_hub_token: ${{ secrets.DOCKER_HUB_TOKEN }} - - publish-github: - name: ${{ matrix.buildpack_id }} - needs: [ detect, package ] - strategy: - fail-fast: false - matrix: - include: ${{ fromJSON(needs.detect.outputs.buildpacks) }} - uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-publish-github.yml@main - with: - buildpack_version: ${{ matrix.buildpack_version }} - buildpack_artifact_prefix: ${{ matrix.buildpack_artifact_prefix }} - - publish-cnb: - name: ${{ matrix.buildpack_id }} - needs: [ detect, publish-docker ] - strategy: - fail-fast: false - matrix: - include: ${{ fromJSON(needs.detect.outputs.buildpacks) }} - uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-publish-cnb-registry.yml@main - with: - buildpack_id: ${{ matrix.buildpack_id }} - buildpack_version: ${{ matrix.buildpack_version }} - docker_repository: ${{ matrix.docker_repository }} - secrets: - cnb_registry_token: ${{ secrets.CNB_REGISTRY_RELEASE_BOT_GITHUB_TOKEN }} - - update-builder: - name: Update Builder - needs: [ detect, publish-docker, publish-cnb, publish-github ] - uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-update-builder.yml@main + release: + name: Release + uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release.yml@main with: app_id: ${{ vars.LINGUIST_GH_APP_ID }} - buildpack_version: ${{ needs.detect.outputs.version }} secrets: app_private_key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }} + cnb_registry_token: ${{ secrets.CNB_REGISTRY_RELEASE_BOT_GITHUB_TOKEN }} + docker_hub_user: ${{ secrets.DOCKER_HUB_USER }} + docker_hub_token: ${{ secrets.DOCKER_HUB_TOKEN }}