Skip to content

Commit

Permalink
feat(workflow): add example config
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdywoffy committed Aug 8, 2022
1 parent 0f00397 commit 7f16ecb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 9 deletions.
34 changes: 34 additions & 0 deletions .github/assets/config.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
OSC:
Sender:
Host: "127.0.0.1"
Port: 9000
Receiver:
Host: "127.0.0.1"
Port: 9001

OBS:
WebsocketVersion: "v4"
Credential:
Host: "localhost"
Port: 4444
Password: "your-secure-obs-password-here"
Scene:
- Number: 1
Name: "Main Screen"
- Number: 2
Name: "VRChat Screen #1"
- Number: 3
Name: "VRChat Screen #2"
- Number: 4
Name: "VRChat Screen #3"
- Number: 5
Name: "Closing #1"
- Number: 6
Name: "Closing #2"
- Number: 7
Name: "Closing #3"
- Number: 8
Name: "Avatar Only"

Logs:
Level: "info"
17 changes: 8 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
name: Build VRChat OBS Control
name: Build VRChat OBS Control (Windows)
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -15,6 +15,7 @@ jobs:
- name: Prepare binary folder
run: |
mkdir bin/
cp .github/assets/config.example.yaml bin/config.yaml
- name: Setup Go
uses: actions/setup-go@v3
Expand All @@ -25,13 +26,13 @@ jobs:
run: 'GOOS=windows GOARCH=amd64 go build -o bin/vrchat-obs-control-win64.exe .'

- name: Compress
run: 'tar -cvf vrc-obs.tar bin'
run: 'zip -r vrchat-obs-control-win64.zip bin/'

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: vrc-obs
path: vrc-obs.tar
name: vrchat-obs-control-win64
path: vrchat-obs-control-win64.zip

release:
name: Release
Expand All @@ -41,15 +42,13 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: vrc-obs

- name: Extract
run: 'tar xf vrc-obs.tar'
name: vrchat-obs-control-win64

- name: Create release
uses: "lauravuo/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
auto_generate_release_notes: true
files: bin/*
files: |
vrchat-obs-control-win64.zip

0 comments on commit 7f16ecb

Please sign in to comment.