From a1c996be1ea9816ccb75f4eedab28a18d91c35a5 Mon Sep 17 00:00:00 2001 From: Wojtek Mach Date: Mon, 12 Sep 2022 15:38:33 +0200 Subject: [PATCH] Automate desktop builds (#1397) --- .github/workflows/deploy.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 376056460..d28ce0ea8 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -91,3 +91,23 @@ jobs: tags: ${{ steps.meta.outputs.tags }} cache-from: type=gha cache-to: type=gha,mode=max + + create_draft_release: + if: github.ref_type == 'tag' + permissions: + contents: write + runs-on: ubuntu-20.04 + env: + GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} + steps: + - name: Create draft release + run: | + gh release create \ + --repo ${{ github.repository }} \ + --title ${{ github.ref_name }} \ + --draft \ + ${{ github.ref_name }} + + - name: Trigger desktop builds + run: | + gh workflow run -R livebook-dev/livebook_cd build.yml -f ref_name=${{ github.ref_name }}