Skip to content

Commit

Permalink
ci: test new way of getting env
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGemmaJr committed Jun 14, 2024
1 parent bb8fdc9 commit 68b66a0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/workflow-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -282,13 +285,13 @@ 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
if: startsWith(matrix.os, 'ubuntu')
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

0 comments on commit 68b66a0

Please sign in to comment.