From 1a86dd5c77ada2ac861a451262f2f412ca4f0e10 Mon Sep 17 00:00:00 2001 From: Cabbage Lettuce <33714346+pycabbage@users.noreply.github.com> Date: Mon, 13 May 2024 14:19:52 +0900 Subject: [PATCH] fix workflow --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cb096d0..d5e35dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -132,11 +132,11 @@ jobs: - name: Prepare package id: package run: | - if [ ${{ github.ref_name }} = 'master' || ${{ github.ref_name }} = 'main' ]; then - echo "This is the main branch" + if [ ${{ github.event_name }} = release ]; then + echo "This is stable release" echo "tag=latest" >> $GITHUB_OUTPUT else - echo "This is the develop branch" + echo "This is the develop release" ./scripts/jqout.sh '.version+="-${{ github.ref_name }}-${{ github.sha }}"' package.json echo "tag=experimental" >> $GITHUB_OUTPUT fi