Skip to content

Merge pull request #6 from QXIP/develop #18

Merge pull request #6 from QXIP/develop

Merge pull request #6 from QXIP/develop #18

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [created, modified]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install
npm run build:kiosk
- uses: actions/upload-artifact@master
if: startsWith(github.ref, 'refs/tags/')
with:
name: dist
path: ./dist
retention-days: 1
publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@master
with:
name: dist
- name: Checkpoint
run: |
ls -alFh webshark
cd webshark && sudo zip -r ../latest.zip .
- name: Upload Release
uses: softprops/[email protected]
with:
files: |
latest.zip