Skip to content

Commit

Permalink
build: Test if sponge and jq are available
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Feb 6, 2021
1 parent 92b68cc commit 73a825f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,26 @@ jobs:
- run: yarn install
- run: yarn lint

# Use
# Use the short has for the
- name: Get filename
id: filename
shell: bash
run: |
[[ "${{ github.ref }}" == "refs/heads/master" ]] && \
echo '::set-output name=name::${name}-dev-'$(git rev-parse --short HEAD)'-${os}.${ext}' || \
echo '::set-output name=name::${name}-${version}-${os}.${ext}'
jq; sponge;
# [[ "${{ github.ref }}" == "refs/heads/master" ]] && \
# npx json json -I -f package.json -e "this.name='adar'"



# '::set-output name=name::${name}-dev-'$(git rev-parse --short HEAD)'-${os}.${ext}' || \
# echo '::set-output name=name::${name}-${version}-${os}.${ext}'

# Build
- run: yarn electron-builder install-app-deps
- run: yarn build-main
- run: yarn build-renderer
- run: yarn dist -c.artifactName='${{ steps.filename.outputs.name }}'
- run: yarn dist --config=.artifactName='${{ steps.filename.outputs.name }}'

# Upload built executables
- name: Upload executable
Expand Down

0 comments on commit 73a825f

Please sign in to comment.