Skip to content

Commit a7cad30

Browse files
committed
fix workflow
fix workflow
1 parent bd0d596 commit a7cad30

File tree

6 files changed

+137
-83
lines changed

6 files changed

+137
-83
lines changed

.github/changelog_config.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"template": "## [Streamdeck vMix Plugin]\n\n#{{CHANGELOG}}",
3+
"categories": [
4+
{
5+
"title": "### 💔 Breaking changes",
6+
"labels": ["breaking"],
7+
"exclude_labels": ["exclude"]
8+
},
9+
{
10+
"title": "### 🆕 Features",
11+
"labels": ["feature"],
12+
"exclude_labels": ["exclude"],
13+
"empty_content": "None"
14+
},
15+
{
16+
"title": "### 🔧 Fixes",
17+
"labels": ["fix"],
18+
"exclude_labels": ["exclude"],
19+
"empty_content": "None"
20+
},
21+
{
22+
"title": "### 📦 Dependencies",
23+
"exhaustive_rules": false,
24+
"rules": [
25+
{
26+
"pattern": "dependency",
27+
"on_property": "labels"
28+
},
29+
{
30+
"pattern": "renovate\\[bot\\]",
31+
"on_property": "author"
32+
}
33+
],
34+
"exclude_labels": ["exclude"]
35+
},
36+
{
37+
"title": "### 💬 Other",
38+
"labels": [],
39+
"exclude_labels": ["documentation", "exclude"]
40+
}
41+
],
42+
"pr_template": "\n* #{{TITLE}} - [##{{NUMBER}}](#{{URL}}), by @#{{AUTHOR}}",
43+
"empty_template": "- no changes",
44+
"sort": {
45+
"order": "ASC",
46+
"on_property": "mergedAt"
47+
},
48+
"max_pull_requests": 1000,
49+
"max_back_track_time_days": 1000,
50+
"tag_resolver": {
51+
"method": "sort",
52+
"filter": {
53+
"pattern": "v[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+",
54+
"flags": "gu"
55+
},
56+
"transformer": {
57+
"pattern": "v([0-9]+)\\.([0-9]+)\\.([0-9]+)\\.[0-9]+",
58+
"target": "$1.$2.$3"
59+
}
60+
}
61+
}

.github/release-drafter.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/build-and-release.yml

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,52 @@ on:
44
workflow_dispatch:
55
push:
66
branches: main
7+
paths: ["src/**", "io.baumert.vmix.sdPlugin/**"]
78
pull_request:
89
types: [opened, reopened, synchronize]
910

1011
jobs:
11-
compile:
12-
name: "Compile"
12+
read-version:
13+
name: Read version
14+
runs-on: ubuntu-latest
15+
outputs:
16+
version: ${{ steps.version.outputs.VERSION }}
17+
steps:
18+
- name: Checkout repo
19+
uses: actions/checkout@v4
20+
21+
- name: Read version
22+
id: version
23+
shell: bash
24+
run: echo VERSION=$(cat io.baumert.vmix.sdPlugin/manifest.json | jq -r '.Version') >> $GITHUB_OUTPUT
25+
26+
create-release:
27+
name: Create release
28+
runs-on: ubuntu-latest
29+
needs: [read-version]
30+
steps:
31+
- name: Checkout repo
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0
1335

36+
- name: Build Changelog
37+
id: build-changelog
38+
uses: mikepenz/release-changelog-builder-action@v5
39+
with:
40+
configuration: ".github/changelog_config.json"
41+
42+
- name: Create Release
43+
id: create-release
44+
uses: softprops/action-gh-release@v2
45+
with:
46+
draft: true
47+
tag_name: v${{needs.read-version.outputs.version}}
48+
body: ${{steps.build-changelog.outputs.changelog}}
49+
50+
build-upload:
51+
name: "Build & Upload"
52+
needs: [create-release, read-version]
1453
runs-on: ubuntu-latest
1554
steps:
1655
- name: Checkout repo
@@ -21,9 +60,6 @@ jobs:
2160
with:
2261
node-version: "20.11.0"
2362

24-
- name: Install correct npm version
25-
run: npm install -g [email protected]
26-
2763
- name: Install Maker CLI
2864
run: npm install -g @elgato/cli
2965

@@ -34,27 +70,12 @@ jobs:
3470
run: npm run build
3571

3672
- name: Pack
37-
run: streamdeck pack io.baumert.vmix.sdPlugin
38-
39-
- uses: release-drafter/release-drafter@v6
40-
id: rd
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
run: streamdeck pack io.baumert.vmix.sdPlugin --version ${{needs.read-version.outputs.version}}
4374

44-
- name: Rename Binary
45-
run: mv io.baumert.vmix.streamDeckPlugin io.baumert.vmix-${{ steps.rd.outputs.tag_name }}.streamDeckPlugin
46-
47-
- name: Create Release
75+
- name: upload artifacts
4876
uses: softprops/action-gh-release@v2
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5177
with:
52-
token: ${{ env.GITHUB_TOKEN }}
5378
draft: true
54-
prerelease: false
55-
tag_name: ${{ steps.rd.outputs.tag_name }}
56-
name: ${{ steps.rd.outputs.tag_name }}
57-
body: ${{ steps.rd.outputs.body }}
58-
generate_release_notes: false
79+
tag_name: v${{needs.read-version.outputs.version}}
5980
files: |
60-
./io.baumert.vmix-${{ steps.rd.outputs.tag_name }}.streamDeckPlugin
81+
*.streamDeckPlugin

.vscode/launch.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "Attach to Plugin",
8+
"name": "Debug property inspectors",
9+
"request": "launch",
10+
"type": "msedge",
11+
"url": "http://localhost:23654",
12+
"webRoot": "${workspaceFolder}"
13+
},
14+
{
15+
"name": "Debug Plugin",
916
"type": "node",
1017
"request": "attach",
11-
"processId": "${command:PickProcess}",
18+
"port": 54545,
19+
"restart": true,
1220
"outFiles": ["${workspaceFolder}/bin/**/*.js"],
13-
"resolveSourceMapLocations": ["${workspaceFolder}/**"]
21+
"resolveSourceMapLocations": ["${workspaceFolder}/**"],
22+
"preLaunchTask": "npm: watch"
1423
}
1524
]
1625
}

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "watch",
7+
"group": {
8+
"kind": "build",
9+
"isDefault": true
10+
},
11+
"isBackground": true,
12+
"problemMatcher": "$rollup-ts-watch",
13+
"label": "npm: watch",
14+
"detail": "rollup -c -w --watch.onEnd=\"streamdeck restart io.baumert.vmix\""
15+
}
16+
]
17+
}

io.baumert.vmix.sdPlugin/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "vMix",
3-
"Version": "0.1.0.0",
3+
"Version": "1.0.1.0",
44
"Author": "Peter Baumert",
55
"Actions": [
66
{
@@ -125,7 +125,7 @@
125125
],
126126
"Nodejs": {
127127
"Version": "20",
128-
"Debug": "enabled"
128+
"Debug": "--inspect=127.0.0.1:54545"
129129
},
130130
"UUID": "io.baumert.vmix",
131131
"$schema": "https://schemas.elgato.com/streamdeck/plugins/manifest.json"

0 commit comments

Comments
 (0)