Skip to content

Commit ae0b75a

Browse files
committed
github action
1 parent 8c23e0b commit ae0b75a

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ScreenBuddy.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: ScrenBuddy
2+
3+
on:
4+
push:
5+
branches: main
6+
7+
jobs:
8+
build:
9+
runs-on: windows-2022
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
path: repo
16+
17+
- name: Build
18+
shell: cmd
19+
run: cd repo && build.cmd
20+
21+
- name: Checkout wiki
22+
uses: actions/checkout@v4
23+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
24+
with:
25+
repository: ${{github.repository}}.wiki
26+
path: wiki
27+
28+
- name: Upload binary
29+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
30+
shell: cmd
31+
run: |
32+
copy repo\ScreenBuddy.exe wiki
33+
34+
cd wiki
35+
git config --local user.email "[email protected]"
36+
git config --local user.name "GitHub Action"
37+
git commit --all --amend --no-edit --allow-empty-message
38+
git push --force-with-lease

0 commit comments

Comments
 (0)