From a438a64b192dd7b54a232c6bed6176d85fc49c96 Mon Sep 17 00:00:00 2001 From: Preston Date: Wed, 27 May 2020 17:18:37 -0400 Subject: [PATCH] Update and rename node.js.yml to build.yml --- .github/workflows/{node.js.yml => build.yml} | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) rename .github/workflows/{node.js.yml => build.yml} (58%) diff --git a/.github/workflows/node.js.yml b/.github/workflows/build.yml similarity index 58% rename from .github/workflows/node.js.yml rename to .github/workflows/build.yml index 902fbcf6d..419f58336 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Node.js CI +name: Build CI on: push: @@ -12,11 +12,10 @@ on: jobs: build: - runs-on: ubuntu-latest - strategy: matrix: node-version: [12.x] + os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v2 @@ -26,8 +25,21 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run build --if-present - - name: Upload Ubuntu Artifact + - name: Upload .deb Artifact uses: actions/upload-artifact@v2 + if: startsWith(matrix.os, 'ubuntu') with: name: freetube-vue_0.8.0_amd64.deb path: build/freetube-vue_0.8.0_amd64.deb + - name: Upload AppImage Artifact + uses: actions/upload-artifact@v2 + if: startsWith(matrix.os, 'ubuntu') + with: + name: freetube-vue_0.8.0_amd64.AppImage + path: build/FreeTube-Vue-0.8.0.AppImage + - name: Upload Windows Exe Artifact + uses: actions/upload-artifact@v2 + if: startsWith(matrix.os, 'windows') + with: + name: freetube-vue_0.8.0.exe + path: build/FreeTube-Vue 0.8.0.exe