From 48189d90c7e9deeb87b2b449279547e8906860ed Mon Sep 17 00:00:00 2001 From: Harry Jarman Date: Wed, 10 Aug 2022 17:37:46 +0100 Subject: [PATCH] Create workflow --- .github/workflows/build.yaml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000000..4e7a2520c9 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,38 @@ +name: Build App +on: + push: + branches: + - master + tags: + - "*" + + workflow_dispatch: + +jobs: + build: + strategy: + matrix: + build-for: [mac, win, linux] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 1 + + - name: Setup Node + uses: actions/setup-node@v3 + + - name: Install packages + run: yarn install + + - name: Download binaries + run: yarn download:binaries + + - name: Build ${{ matrix.build-for }} + run: yarn build:${{ matrix.build-for }} + + - name: Save Artifacts + uses: actions/upload-artifact@v2 + with: + path: ./dist/${{ matrix.build-for }}/*