From 0970371a1707e2cedf8e7099380f7f79ac17f022 Mon Sep 17 00:00:00 2001 From: Julen Garcia Leunda Date: Fri, 6 Nov 2020 17:52:58 +0100 Subject: [PATCH 1/2] Add package Github Action --- .github/workflows/package.yml | 70 +++++++++++++++++++++++++++++++++++ 1 file changed, 70 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..d3c800b7e1 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,70 @@ +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: '12' + - 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: '12' + - 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: '12' + - 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 + \ No newline at end of file From 4f1b9a75c58386bf1cd206606826a315cbc4462a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez=20Baquero?= Date: Wed, 22 Sep 2021 19:50:03 -0500 Subject: [PATCH 2/2] Update package.yml --- .github/workflows/package.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index d3c800b7e1..57cff9732a 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: '12' + node-version: '16' - uses: actions/cache@v2 with: path: ~/.npm @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: '12' + node-version: '16' - uses: actions/cache@v2 with: path: ~/.npm @@ -51,7 +51,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: '12' + node-version: '16' - uses: actions/cache@v2 with: path: ~/.npm @@ -67,4 +67,3 @@ jobs: dist/*.exe dist/*.nupkg dist/*.zip - \ No newline at end of file