Skip to content

Quick note about the project status #34

Quick note about the project status

Quick note about the project status #34

Workflow file for this run

name: CLI build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
name: "Install dependencies from package-lock.json"
- run: npm install pkg -g
name: "Install pkg"
- run: npm install typescript -g
name: "Install typescript"
- run: tsc
working-directory: ./src-cli
name: "Build cli to javascript"
- run: pkg .
name: "Package cli to single executable"
- run: mkdir "out"
name: "Create output directory"
- run: copy paint-by-numbers-generator-win.exe .\out\paint-by-numbers-generator-win.exe
name: "Copy binary to out directory"
- run: copy .\node_modules\canvas\build\Release\* .\out
name: "Copy node-canvas binaries to output"
- run: del *.pdb, *.ipdb, *.iobj
name: "Cleanup unnecessary debug files"
working-directory: ./out
- uses: actions/upload-artifact@v2
name: "Upload out as artifact"
with:
name: pbn-cli-win
path: .\out\*
env:
CI: true
- run: mkdir artifacts
- name: Download a Build Artifact zip
uses: actions/[email protected]
with:
name: "pbn-cli-win"
path: "./artifacts/pbn-cli-win.zip"
- uses: ncipollo/release-action@v1
name: "Create development prerelease"
with:
artifact: "artifacts/*"
prerelease: true
allowUpdates: true
name: "CLI Development build"
tag: "latest"
token: ${{ secrets.GITHUB_TOKEN }}