From c7647440ba682c36a4dc59027673bc4eaecd69e5 Mon Sep 17 00:00:00 2001 From: Julen Garcia Leunda Date: Thu, 23 Sep 2021 02:52:06 +0200 Subject: [PATCH] build: add package Github Action (#1888) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add package Github Action * Update package.yml Co-authored-by: Diego Rodríguez Baquero --- .github/workflows/package.yml | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .github/workflows/package.yml diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000000..57cff9732a --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,69 @@ +name: package +on: + workflow_dispatch: +jobs: + package_linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '16' + - uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm install + - run: npm run package -- linux + - uses: actions/upload-artifact@v2 + with: + name: linux + path: | + dist/*.deb + dist/*.rpm + dist/*.zip + package_macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '16' + - uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm install + - run: npm run package -- darwin + - uses: actions/upload-artifact@v2 + with: + name: macos + path: | + dist/*.dmg + dist/*.zip + package_windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '16' + - uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm install + - run: npm run package -- win32 + - uses: actions/upload-artifact@v2 + with: + name: windows + path: | + dist/*.exe + dist/*.nupkg + dist/*.zip