Skip to content

Commit

Permalink
Update electron-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored May 25, 2023
1 parent 4f692df commit 85868c3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/electron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
- name: Update package.json with GitHub tag
run: |
brew install jq
jq --arg version ${GITHUB_REF#refs/*/} '.version = $version' taxonium_electron/package.json > temp.json
version=$(echo ${GITHUB_REF#refs/*/} | sed 's/^v//')
jq --arg version $version '.version = $version' taxonium_electron/package.json > temp.json
mv temp.json taxonium_electron/package.json
- name: Build Electron app with electron-builder
Expand Down Expand Up @@ -76,7 +77,7 @@ jobs:
run: |
choco install jq
$GITHUB_REF = $env:GITHUB_REF
$version = $GITHUB_REF -replace 'refs/.*/'
$version = $GITHUB_REF -replace 'refs/.*/' -replace '^v'
jq --arg version $version '.version = $version' "taxonium_electron/package.json" > temp.json
mv -Force temp.json taxonium_electron/package.json
shell: powershell
Expand Down Expand Up @@ -122,8 +123,9 @@ jobs:
node-version: 16
- name: Update package.json with GitHub tag
run: |
sudo apt-get install jq
jq --arg version ${GITHUB_REF#refs/*/} '.version = $version' taxonium_electron/package.json > temp.json
brew install jq
version=$(echo ${GITHUB_REF#refs/*/} | sed 's/^v//')
jq --arg version $version '.version = $version' taxonium_electron/package.json > temp.json
mv temp.json taxonium_electron/package.json
- name: Build Electron app with electron-builder
run: |
Expand Down

1 comment on commit 85868c3

@vercel
Copy link

@vercel vercel bot commented on 85868c3 May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.