From ed38a9e7ff88aa2797062c556769751d434f23fc Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Sun, 12 Jun 2022 18:30:44 +0200 Subject: [PATCH] ci: linux upload artifacts github action --- .github/workflows/create-artifact-linux.yml | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/create-artifact-linux.yml diff --git a/.github/workflows/create-artifact-linux.yml b/.github/workflows/create-artifact-linux.yml new file mode 100644 index 00000000..22a2d030 --- /dev/null +++ b/.github/workflows/create-artifact-linux.yml @@ -0,0 +1,37 @@ +name: Create artifact [linux] + +on: + workflow_dispatch: {} + +jobs: + release: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + + steps: + - name: Check out Git repository + uses: actions/checkout@v3 + + - name: npm install & build + run: | + npm install + npm run build:local + + - name: Build/release Electron app + uses: samuelmeuli/action-electron-builder@v1 + with: + github_token: ${{ secrets.github_token }} + release: ${{ startsWith(github.ref, 'refs/tags/v') }} + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: linux-build + retention-days: 3 + path: | + build + !build/linux-unpacked + !build/.icon-ico