Build #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [ workflow_dispatch ] | |
env: | |
APP_VERSION: '0.2.0' | |
jobs: | |
build-win-x64: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
- name: Build Windows | |
run: npm run build | |
- name: Package Windows | |
run: npm run pack-win | |
- name: Upload Artifact - Windows | |
uses: actions/upload-artifact@v4 | |
with: | |
name: m3u8downloader-v${{ env.APP_VERSION }}-win32-x64.zip | |
path: release/m3u8downloader-v${{ env.APP_VERSION }}-win32-x64.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-mac-x64: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
- name: Build MacOS | |
run: npm run build | |
- name: Package MacOS | |
run: npm run pack-mac | |
- name: Upload Artifact - MacOS | |
uses: actions/upload-artifact@v4 | |
with: | |
name: m3u8downloader-v${{ env.APP_VERSION }}-darwin-x64.dmg | |
path: release/m3u8downloader-v${{ env.APP_VERSION }}-darwin-x64.dmg | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-linux-x64: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
- name: Build Linux | |
run: npm run build | |
- name: Package Linux | |
run: npm run pack-linux | |
- name: Upload Artifact - Linux | |
uses: actions/upload-artifact@v4 | |
with: | |
name: m3u8downloader-v${{ env.APP_VERSION }}-linux-x64.tar.gz | |
path: release/m3u8downloader-v${{ env.APP_VERSION }}-linux-x64.tar.gz | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |