From 01a809a162d2973837470b9711c7f6b41eb3009b Mon Sep 17 00:00:00 2001 From: Thomas Roque Date: Mon, 1 May 2023 15:09:58 +0200 Subject: [PATCH] rollback build.yml --- .github/workflows/build.yml | 61 ++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cac91fe9..0cd0f9ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,39 +1,38 @@ name: Build -on: [push, pull_request] + +on: push jobs: - build_on_linux: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@master - with: - node-version: 18 - - name: install dependencies - run: npm install - - name: build - run: npm run dist + release: + runs-on: ${{ matrix.os }} - build_on_mac: - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@master - with: - node-version: 18 - - name: install dependencies - run: npm install - - name: build - run: npm run dist + permissions: + contents: write + + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] - build_on_win: - runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@master + - name: Check out Git repository + uses: actions/checkout@v3 + + - name: Set up Node + uses: actions/setup-node@v3 with: node-version: 18 - - name: install dependencies - run: npm install - - name: build - run: npm run dist \ No newline at end of file + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.x + + - name: Install Dependencies + run: npm ci + shell: bash + + - name: Build + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm run dist + shell: bash