From 9164ad6b97a494c5a6e57a6f1b83016b30b473e0 Mon Sep 17 00:00:00 2001 From: Darius Jahandarie Date: Sat, 18 Mar 2023 13:15:30 +0900 Subject: Switch CD to use workflow-dispatch instead of preleased trigger For some reason, preleased wasn't triggering (maybe because github actions created the release?). --- .github/workflows/create-prerelease-on-tag.yml | 15 +++++++++++++++ .github/workflows/publish-chrome-development.yml | 2 -- .github/workflows/publish-firefox-development.yml | 3 +-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-prerelease-on-tag.yml b/.github/workflows/create-prerelease-on-tag.yml index 2db723fb..3d749c58 100644 --- a/.github/workflows/create-prerelease-on-tag.yml +++ b/.github/workflows/create-prerelease-on-tag.yml @@ -10,6 +10,7 @@ jobs: build-release-publish: runs-on: ubuntu-latest permissions: + actions: write contents: write steps: - uses: actions/checkout@v3 @@ -29,3 +30,17 @@ jobs: generate_release_notes: true prerelease: true files: builds/* + + - name: Dispatch publish-chrome-development + uses: aurelien-baudet/workflow-dispatch@93e95b157d791ae7f42aef8f8a0d3d723eba1c31 # pin@v2 + with: + workflow: publish-chrome-development + token: ${{ secrets.GITHUB_TOKEN }} + wait-for-completion: false + + - name: Dispatch publish-firefox-development + uses: aurelien-baudet/workflow-dispatch@93e95b157d791ae7f42aef8f8a0d3d723eba1c31 # pin@v2 + with: + workflow: publish-firefox-development + token: ${{ secrets.GITHUB_TOKEN }} + wait-for-completion: false diff --git a/.github/workflows/publish-chrome-development.yml b/.github/workflows/publish-chrome-development.yml index a21dd52a..49c176ea 100644 --- a/.github/workflows/publish-chrome-development.yml +++ b/.github/workflows/publish-chrome-development.yml @@ -1,7 +1,5 @@ name: publish-chrome-development on: - release: - types: [prereleased] workflow_dispatch: inputs: attemptNumber: diff --git a/.github/workflows/publish-firefox-development.yml b/.github/workflows/publish-firefox-development.yml index b8245301..e8609aa0 100644 --- a/.github/workflows/publish-firefox-development.yml +++ b/.github/workflows/publish-firefox-development.yml @@ -4,8 +4,7 @@ name: publish-firefox-development on: - release: - types: [prereleased] + workflow_dispatch: permissions: contents: read jobs: -- cgit v1.2.3