From 1337c5240848e0564200f4ccd06071b2c4952fe5 Mon Sep 17 00:00:00 2001 From: Pierre Jacquier Date: Wed, 28 Aug 2024 07:51:50 -0400 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67e8995ea..d1183440c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,16 +142,15 @@ jobs: cache: 'yarn' - name: Set nightly version - # if: github.event_name == 'schedule' + if: github.event_name == 'schedule' run: | - # VERSION=$(date +'%-y.%-m.%-d') yarn bump-jsons - VERSION=0.99.99 yarn bump-jsons - echo "$(jq --arg url 'https://dl.zoo.dev/releases/modeling-app/test/nsis/last_update.json' \ + VERSION=$(date +'%-y.%-m.%-d') yarn bump-jsons + echo "$(jq --arg url 'https://dl.zoo.dev/releases/modeling-app/nightly/last_update.json' \ '.plugins.updater.endpoints[]=$url' src-tauri/tauri.release.conf.json --indent 2)" > src-tauri/tauri.release.conf.json - # echo "$(jq --arg id 'dev.zoo.modeling-app-nightly' \ - # '.identifier=$id' src-tauri/tauri.release.conf.json --indent 2)" > src-tauri/tauri.release.conf.json - # echo "$(jq --arg name 'Zoo Modeling App (Nightly)' \ - # '.productName=$name' src-tauri/tauri.release.conf.json --indent 2)" > src-tauri/tauri.release.conf.json + echo "$(jq --arg id 'dev.zoo.modeling-app-nightly' \ + '.identifier=$id' src-tauri/tauri.release.conf.json --indent 2)" > src-tauri/tauri.release.conf.json + echo "$(jq --arg name 'Zoo Modeling App (Nightly)' \ + '.productName=$name' src-tauri/tauri.release.conf.json --indent 2)" > src-tauri/tauri.release.conf.json - name: Set updater test version if: ${{ env.CUT_RELEASE_PR == 'true' }} @@ -444,8 +443,7 @@ jobs: permissions: contents: write runs-on: ubuntu-latest - # if: ${{ github.event_name == 'release' || github.event_name == 'schedule' }} - if: true + if: ${{ github.event_name == 'release' || github.event_name == 'schedule' }} needs: [check-format, check-types, check-typos, build-test-web, prepare-json-files, build-test-apps] env: VERSION_NO_V: ${{ needs.prepare-json-files.outputs.version }}