-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 970 Bytes
/
windows.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
name: build on windows
on:
push:
branches: [jnh]
pull_request:
types: [synchronize, opened]
jobs:
build:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- uses: ilammy/msvc-dev-cmd@v1
- name: buildmain
run: |
sys/windows/nhsetup
cd src
nmake install
- name: archive
run: |
7z a latest.zip binary/
- name: tag
uses: EndBug/latest-tag@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: release
uses: ncipollo/release-action@v1 #https://github.com/ncipollo/release-action/tree/main
with:
name: "latest"
allowUpdates: true
tag: latest
commit: jnh
replacesArtifacts: true
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: ./latest.zip