From 68b66a056704affc5865d9918cb76e5b7f34a991 Mon Sep 17 00:00:00 2001 From: RobertGemmaJr Date: Fri, 14 Jun 2024 14:34:43 -0400 Subject: [PATCH] ci: test new way of getting env --- .github/workflows/workflow-package.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/workflow-package.yml b/.github/workflows/workflow-package.yml index 0ed15c29e..5b6aa9392 100644 --- a/.github/workflows/workflow-package.yml +++ b/.github/workflows/workflow-package.yml @@ -235,8 +235,11 @@ jobs: - name: Get package name and version run: | echo PACKAGE_NAME=$(jq -r '.name' package.json) >> $GITHUB_ENV - echo "PACKAGE_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV - + echo PACKAGE_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV + - name: Check package name and version + run: | + echo $PACKAGE_NAME + echo $PACKAGE_VERSION - run: tree ./out/make shell: bash @@ -273,7 +276,7 @@ jobs: with: name: ${{ format('win-installer-{0}', github.event.inputs.setting) }} # path: out/make/squirrel.windows/x64/$PACKAGE_NAME-$PACKAGE_VERSION Setup.exe - path: ${{ format('out/make/squirrel.windows/x64/{0}-{1} Setup.exe', '$PACKAGE_NAME', '$PACKAGE_VERSION' )}} + path: ${{ format('out/make/squirrel.windows/x64/{0}-{1} Setup.exe', env.PACKAGE_NAME , env.PACKAGE_VERSION )}} if-no-files-found: error - name: ⬆ Upload installer - Mac @@ -282,7 +285,7 @@ jobs: with: name: ${{ format('mac-installer-{0}', github.event.inputs.setting) }} # path: out/make/$PACKAGE_NAME-$PACKAGE_VERSION-universal.dmg - path: ${{ format('out/make/{0}-{1}-universal.dmg', '$PACKAGE_NAME', '$PACKAGE_VERSION')}} + path: ${{ format('out/make/{0}-{1}-universal.dmg', env.PACKAGE_NAME , env.PACKAGE_VERSION)}} if-no-files-found: error - name: ⬆ Upload installer - Linux uses: actions/upload-artifact@v4 @@ -290,5 +293,5 @@ jobs: with: name: ${{ format('linux-installer-{0}', github.event.inputs.setting) }} # path: out/make/deb/x64/$PACKAGE_NAME_$PACKAGE_VERSION_amd64.deb - path: ${{ format('out/make/deb/x64/{0}_{1}]_amd64.deb', '$PACKAGE_NAME', '$PACKAGE_VERSION')}} + path: ${{ format('out/make/deb/x64/{0}_{1}]_amd64.deb', env.PACKAGE_NAME , env.PACKAGE_VERSION)}} if-no-files-found: error