From a04a0658271e8b7d5647436dcf13f6c4f5d05a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Sat, 10 Aug 2024 02:21:10 +0900 Subject: [PATCH] Fix Desktop build dispatch --- .github/workflows/release.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3dbd7735f..fec02ee6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,20 @@ jobs: --draft \ ${{ github.ref_name }} + desktop: + name: "Desktop" + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} + steps: + - name: Trigger desktop builds + run: | + if [[ "${{ github.ref_type }}" == "tag" ]]; then + gh workflow run -R livebook-dev/livebook_cd build.yml -f ref_name=${{ github.ref_name }} + else + gh workflow run -R livebook-dev/livebook_cd build.yml -f ref_name=${{ github.sha }} -f release_name=nightly + fi + docker: name: Docker (${{ matrix.name }}) runs-on: ubuntu-latest @@ -81,15 +95,3 @@ jobs: build-args: | BASE_IMAGE=hexpm/elixir:${{ env.elixir }}-erlang-${{ env.otp }}-ubuntu-${{ env.ubuntu }} ${{ matrix.build_args }} - - desktop: - name: "Desktop" - runs-on: ubuntu-latest - steps: - - name: Trigger desktop builds - run: | - if [[ "${{ github.ref_type }}" == "tag" ]]; then - gh workflow run -R livebook-dev/livebook_cd build.yml -f ref_name=${{ github.ref_name }} - else - gh workflow run -R livebook-dev/livebook_cd build.yml -f ref_name=${{ github.sha }} -f release_name=nightly - fi