ci: linux upload artifacts github action

This commit is contained in:
Fabio Di Stasio 2022-06-12 18:30:44 +02:00
parent d214c1f35b
commit ed38a9e7ff
1 changed files with 37 additions and 0 deletions

View File

@ -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