From 42599ffa89e4bad2862bf32b8ddc1a8ac80af07e Mon Sep 17 00:00:00 2001 From: Carlos Valente <34649812+cpvalente@users.noreply.github.com> Date: Sun, 13 Jun 2021 10:03:02 +0200 Subject: [PATCH] Update autobuild.yml mac release config --- .github/workflows/autobuild.yml | 45 +++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 54e1a2ba5..e8953185b 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -15,8 +15,8 @@ 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 a file for windows + buildwin: # The type of runner that the job will run on runs-on: windows-latest env: @@ -55,3 +55,44 @@ jobs: files: ./server/dist/ontime-win64.exe env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # build a file for mac + buildmac: + # The type of runner that the job will run on + runs-on: macOS-latest + env: + CI: '' + + # 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 + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '14.x' + + # install and build react + - name: Install React dependencies + run: yarn install + working-directory: ./client + - name: Build React App + run: yarn build + working-directory: ./client + + # install and build electron + - name: Install Electron + nodejs dependencies + run: yarn install + working-directory: ./server + - name: Build Electron App + run: yarn dist-win + working-directory: ./server + + # release + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: ./server/dist/ontime-macOS.dmg + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}