Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Use cross platform version extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
obany committed Jul 24, 2020
1 parent 61ca234 commit 6beb0ca
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/desktop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,28 @@ jobs:
run: npm run package-linux
if: matrix.os == 'ubuntu-18.04'

- name: get-npm-version
- name: get version
id: package-version
uses: martinbeentjes/[email protected]
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'

- uses: actions/upload-artifact@v2
with:
name: pollen-wallet-win-${{ steps.package-version.outputs.current-version}}
path: out/pollen-wallet-${{ steps.package-version.outputs.current-version}}.exe
name: pollen-wallet-win-${{ steps.package-version.outputs.prop}}
path: out/pollen-wallet-${{ steps.package-version.outputs.prop}}.exe
if: matrix.os == 'windows-2019'

- uses: actions/upload-artifact@v2
with:
name: pollen-wallet-mac-${{ steps.package-version.outputs.current-version}}
path: out/pollen-wallet-${{ steps.package-version.outputs.current-version}}.dmg
name: pollen-wallet-mac-${{ steps.package-version.outputs.prop}}
path: out/pollen-wallet-${{ steps.package-version.outputs.prop}}.dmg
if: matrix.os == 'macos-10.15'

- uses: actions/upload-artifact@v2
with:
name: pollen-wallet-linux-${{ steps.package-version.outputs.current-version}}
name: pollen-wallet-linux-${{ steps.package-version.outputs.prop}}
path: |
out/pollen-wallet-${{ steps.package-version.outputs.current-version}}.AppImage
out/pollen-wallet-${{ steps.package-version.outputs.prop}}.AppImage
if: matrix.os == 'ubuntu-18.04'

0 comments on commit 6beb0ca

Please sign in to comment.