-
Notifications
You must be signed in to change notification settings - Fork 35
49 lines (41 loc) · 1.11 KB
/
wcap.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: wcap
on:
push:
branches: main
paths-ignore:
- '**/README.md'
pull_request:
branches: main
paths-ignore:
- '**/README.md'
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: repo
- name: Build (x64)
shell: cmd
run: cd repo && build.cmd x64
- name: Build (arm64)
shell: cmd
run: cd repo && build.cmd arm64
- name: Checkout wiki
uses: actions/checkout@v4
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
with:
repository: ${{github.repository}}.wiki
path: wiki
- name: Upload binaries
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
shell: cmd
run: |
copy repo\wcap-x64.exe wiki
copy repo\wcap-arm64.exe wiki
cd wiki
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit --all --amend --no-edit
git push --force-with-lease