name: Create artifact [LINUX ARM64]

on: 
  workflow_dispatch: {}

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Check out Git repository
        uses: actions/checkout@v3

      - name: Install Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 16
      
      - name: Install dependencies
        run: npm i
        
      - name: "Build"
        run: npm run build -- --arm64 --linux deb AppImage

      - name: Upload Artifact
        uses: actions/upload-artifact@v3
        with:
          name: linux-build
          retention-days: 3
          path: |
            build
            !build/*-unpacked
            !build/.icon-ico
