Skip to content

Commit

Permalink
Merge pull request #2 from ellreka/ci/build-release
Browse files Browse the repository at this point in the history
ci: add build ci
  • Loading branch information
ellreka authored Jul 1, 2022
2 parents 1b11876 + e9858b5 commit 58327e8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build

on:
push:
tags: v*

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Setup NodeJs
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build:release
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: Release/net.ellreka.slack-status.streamDeckPlugin
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
"build:pi": "esbuild ./src/pi.ts --bundle --outfile=./net.ellreka.slack-status.sdPlugin/pi.js --target=esnext",
"dev": "yarn concurrently \"yarn build:main --watch\" \"yarn build:pi --watch\"",
"build": "yarn build:main && yarn build:pi",
"release": "rm -f ./Release/* && ./bin/DistributionTool -b -i net.ellreka.slack-status.sdPlugin -o ./Release"
"build:release": "rm -f ./Release/* && ./bin/DistributionTool -b -i net.ellreka.slack-status.sdPlugin -o ./Release"
},
"devDependencies": {},
"dependencies": {
"concurrently": "^7.2.1",
"dayjs": "^1.11.2",
"esbuild": "^0.14.41",
"typescript": "^4.7.2"
},
"volta": {
"node": "16.10.0"
}
}

0 comments on commit 58327e8

Please sign in to comment.