Skip to content

Commit

Permalink
Merge pull request #1 from nerdywoffy/bugfix/fix-pipeline
Browse files Browse the repository at this point in the history
Fix several workflow commands
  • Loading branch information
nerdywoffy authored Aug 8, 2022
2 parents d8eab3c + dee80d8 commit 0f00397
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 46 deletions.
91 changes: 45 additions & 46 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,51 +6,50 @@ on:

jobs:
build:
name: Build VRChat OBS Control
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Prepare binary folder
run: |
mkdir bin/
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
- name: Build Windows Binary
run: 'GOOS=windows GOARCH=amd64 go build -o bin/vrchat-obs-control-win64.exe .'

- name: Compress
run: 'tar -cvf vrc-obs.tar bin'

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: vrc-obs
path: vrc-obs.tar
name: Build VRChat OBS Control
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Prepare binary folder
run: |
mkdir bin/
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.18'

- name: Build Windows Binary
run: 'GOOS=windows GOARCH=amd64 go build -o bin/vrchat-obs-control-win64.exe .'

- name: Compress
run: 'tar -cvf vrc-obs.tar bin'

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

release:
name: Release
runs-on: ubuntu-latest
needs: build

steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: vrc-obs

- name: Extract
run: 'tar xf vrc-obs.tar'

- name: Create release
uses: "lauravuo/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
auto_generate_release_notes: true
files: bin/*
name: Release
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: vrc-obs

- name: Extract
run: 'tar xf vrc-obs.tar'

- name: Create release
uses: "lauravuo/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
auto_generate_release_notes: true
files: bin/*
23 changes: 23 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint and Build
on:
push

jobs:
build:
name: Build VRChat OBS Control
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Prepare binary folder
run: |
mkdir bin/
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.18'

- name: Go Vet
run: 'go vet ./...'

0 comments on commit 0f00397

Please sign in to comment.