This repository has been archived on 2025-04-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
FalixNodes-Desktop-v3.7.21/.github/workflows/appx.yml
2025-03-22 22:00:24 -04:00

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/