36 lines
986 B
YAML
36 lines
986 B
YAML
name: Build AppX
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-win:
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm install
|
|
- run: npm run build
|
|
- run: Remove-Item -path .\dist\win-unpacked\ -recurse # This will make sure that Build Artifact doesn't take a butt load of time to zip up the dist folder I need
|
|
- name: SFTP uploader
|
|
uses: wangyucode/sftp-upload-action@v1.1
|
|
with:
|
|
host: ${{ secrets.SFTP_IP }}
|
|
port: 22
|
|
removeExtraFiles: false
|
|
username: ${{ secrets.SFTP_USERNAME }}
|
|
password: ${{ secrets.SFTP_PASSWORD }}
|
|
localDir: ./dist/
|
|
remoteDir: /usr/share/nginx/updates/.prepare/falixnodes-desktop/windows/
|