From f9b0cb590713bbbfb619a409b8ba4bd23b0e8896 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Sat, 30 Nov 2024 14:17:42 -0800 Subject: [PATCH] Fixed: Run yarn publish:staging --- .github/actions/build/windows/todesktop/action.yml | 12 +++++++++++- .github/workflows/publish_staging.yml | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/actions/build/windows/todesktop/action.yml b/.github/actions/build/windows/todesktop/action.yml index bf9a773f..d3656398 100644 --- a/.github/actions/build/windows/todesktop/action.yml +++ b/.github/actions/build/windows/todesktop/action.yml @@ -10,6 +10,9 @@ inputs: TODESKTOP_ACCESS_TOKEN: description: 'ToDesktop Access Token' required: true + STAGING: + description: 'Build Staging' + required: false runs: using: composite steps: @@ -42,4 +45,11 @@ runs: GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} TODESKTOP_EMAIL: ${{ inputs.TODESKTOP_EMAIL}} TODESKTOP_ACCESS_TOKEN: ${{inputs.TODESKTOP_ACCESS_TOKEN}} - run: yarn run publish + run: | + if [ "${{ inputs.STAGING }}" = "true" ]; then + echo "🚧 Building STAGING version..." + yarn run publish:staging + else + echo "🚀 Building PRODUCTION version..." + yarn run publish + fi diff --git a/.github/workflows/publish_staging.yml b/.github/workflows/publish_staging.yml index 43985753..4a41717b 100644 --- a/.github/workflows/publish_staging.yml +++ b/.github/workflows/publish_staging.yml @@ -17,3 +17,4 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} TODESKTOP_ACCESS_TOKEN: ${{secrets.TODESKTOP_ACCESS_TOKEN}} TODESKTOP_EMAIL: ${{secrets.TODESKTOP_EMAIL}} + STAGING: true