Skip to content

Commit

Permalink
Update BuildAndRelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TankNee authored Sep 27, 2020
1 parent 016b499 commit 5db24ea
Showing 1 changed file with 48 additions and 6 deletions.
54 changes: 48 additions & 6 deletions .github/workflows/BuildAndRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
build-windows:
# The type of runner that the job will run on
runs-on: windows-latest
if: contains(github.ref, 'refs/tags/v')
Expand All @@ -24,38 +24,80 @@ jobs:
- name: Check out branch
uses: actions/checkout@master

- name: Install Node.js, NPM and Yarn
- name: Install Node.js, NPM
uses: actions/setup-node@v1
with:
node-version: 14

- name: Build
run: |
npm install
npm run build-all
npm run build-publish
- name: Compress Bundle
run: |
npm install -g bestzip
bestzip Neeto-Vue-win32-x64.zip dist/electron/Neeto-Vue-win32-x64/*
bestzip Neeto-Vue-linux-x64.zip dist/electron/Neeto-Vue-linux-x64/*
bestzip Neeto-Vue-darwin-x64.zip dist/electron/Neeto-Vue-darwin-x64/*
- name: Upload Win Package
uses: actions/upload-artifact@v1
with:
name: Windows_Dist
path: Neeto-Vue-win32-x64.zip
build-linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest
if: contains(github.ref, 'refs/tags/v')
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out branch
uses: actions/checkout@master

- name: Install Node.js, NPM
uses: actions/setup-node@v1
with:
node-version: 14
- name: Build
run: |
npm install
npm run build-publish
- name: Compress Bundle
run: |
npm install -g bestzip
bestzip Neeto-Vue-linux-x64.zip dist/electron/Neeto-Vue-linux-x64/*
- name: Upload Linux Package
uses: actions/upload-artifact@v1
with:
name: Linux_Dist
path: Neeto-Vue-linux-x64.zip
build-mac:
# The type of runner that the job will run on
runs-on: macos-latest
if: contains(github.ref, 'refs/tags/v')
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out branch
uses: actions/checkout@master

- name: Install Node.js, NPM
uses: actions/setup-node@v1
with:
node-version: 14
- name: Build
run: |
npm install
npm run build-publish
- name: Compress Bundle
run: |
npm install -g bestzip
bestzip Neeto-Vue-darwin-x64.zip dist/electron/Neeto-Vue-darwin-x64/*
- name: Upload Mac Package
uses: actions/upload-artifact@v1
with:
name: MacOS_Dist
path: Neeto-Vue-darwin-x64.zip
release:
needs: [build]
needs: [build-windows]
runs-on: ubuntu-latest
if: contains(github.ref, 'refs/tags/v')
steps:
Expand Down

0 comments on commit 5db24ea

Please sign in to comment.