Skip to content

Commit

Permalink
Merge pull request #4 from olzzon/develop
Browse files Browse the repository at this point in the history
fix: zip build to upload
  • Loading branch information
olzzon authored Mar 28, 2023
2 parents ecd6ea5 + 7efac15 commit 9ea5335
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ jobs:
node-version: 16.x

- name: Install dependencies
run: npm install
run: yarn install

- name: Build Electron App for Windows
if: matrix.os == 'windows'
run: |
npm run make
npm run package
yarn make
yarn package
- name: Build Electron App for MacOS
if: matrix.os == 'macos'
run: |
npm run make
yarn make
yarn package
release:
name: Create Release
needs: build-electron-app
Expand All @@ -52,16 +53,17 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release ${{ github.ref }} for ${{ matrix.os }}
draft: false
prerelease: false
run: |
zip --junk-paths ninja-player README.md
- name: Upload Assets
id: upload_asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/${{ matrix.os }}
asset_name: NinjaPlayer-${{ github.ref }}-${{ matrix.os }}.${{ env.FILE_EXTENSION }}
asset_content_type: application/${{ env.FILE_EXTENSION }}
asset_path: ./ninja-player.zip
asset_name: ninja-player.zip
asset_content_type: application/zip

0 comments on commit 9ea5335

Please sign in to comment.