Skip to content

Commit

Permalink
Merge pull request #3 from neilenns/neilenns/issue1
Browse files Browse the repository at this point in the history
Add build process
  • Loading branch information
neilenns authored May 14, 2024
2 parents d0c3ea4 + 743054a commit 87dd3fa
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Pull request validation

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: windows-latest
defaults:
run:
working-directory: trackaudio

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.11.0"
cache: "npm"
cache-dependency-path: "trackaudio/package-lock.json"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Package
run: npm run package
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
release:
types: [published]

jobs:
build:
runs-on: windows-latest
defaults:
run:
working-directory: trackaudio

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.11.0"
cache: "npm"
cache-dependency-path: "trackaudio/package-lock.json"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Package
run: npm run package

- name: Upload package
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
*.streamDeckPlugin
5 changes: 4 additions & 1 deletion trackaudio/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ node_modules/

# Stream Deck files
*.sdPlugin/bin
*.sdPlugin/logs
*.sdPlugin/logs

# Built packages
*.streamDeckPlugin

0 comments on commit 87dd3fa

Please sign in to comment.