Skip to content

Commit

Permalink
add github ci to build & upload binary
Browse files Browse the repository at this point in the history
  • Loading branch information
mmozeiko committed Apr 10, 2023
1 parent 13ad5ba commit 3f4a777
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/TwitchNotify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: TwitchNotify

on:
push:
branches: master

jobs:
build:
runs-on: windows-2022

steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: repo

- name: Build
shell: cmd
run: cd repo && build.cmd

- name: Checkout wiki
uses: actions/checkout@v3
with:
repository: ${{github.repository}}.wiki
path: wiki

- name: Upload binary
shell: cmd
run: |
cd repo
"C:\Program Files\7-Zip\7z.exe" a -tzip -mx=9 TwitchNotify.zip TwitchNotify.exe TwitchNotify.ini
cd ..
copy repo\TwitchNotify.zip wiki
cd wiki
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit --all --amend --no-edit
git push --force-with-lease

0 comments on commit 3f4a777

Please sign in to comment.