diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75b4f27..093096b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,7 @@ on: push env: NODE_ENV: production + ADBLOCK: 1 jobs: release: @@ -12,6 +13,11 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] + include: + - os: ubuntu-latest + platform: linux + - os: windows-latest + platform: windows steps: - name: Check out Git repository @@ -20,11 +26,15 @@ jobs: - name: Install Node.js, NPM and Yarn uses: actions/setup-node@v3 with: - node-version: '18' + node-version: "18" - - name: Build/release Electron app - uses: coparse-inc/action-electron-builder@v1.0.0 - with: - github_token: ${{ secrets.github_token }} - release: ${{ startsWith(github.ref, 'refs/tags/v') }} - \ No newline at end of file + - name: Install Node packages + run: npm ci --include=dev + + - name: Build App + run: npm run build --if-present + + - name: Pack App + run: npx electron-builder --${{ matrix.platform }} --publish ${{ startsWith(github.ref, 'refs/tags/v') && 'always' || 'never'}} + env: + GH_TOKEN: ${{ secrets.github_token }}