-
Notifications
You must be signed in to change notification settings - Fork 304
59 lines (49 loc) · 1.72 KB
/
agl.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
50
51
52
53
54
55
56
57
58
on:
push:
tags:
- v* # You will need to provide a tag of the form 'v* ...' with your push command:
# For example git tag -a v11 -m "bug fix" && git push origin v11
name: Create Release
jobs:
build:
name: Create Release
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
deploy:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.2
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Restore NuGet Packages
run: nuget restore GraphLayout/GraphLayout.sln
- name: Build agl.csproj
run: msbuild GraphLayout\tools\agl\agl.csproj /p:Configuration=Release /p:Platform="AnyCPU" /p:DeployOnBuild=true /p:PublishProfile=FolderProfile
- name: aglzip
run: 7z a agl.zip .\GraphLayout\tools\agl\bin\Release -r
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: agl.zip
asset_name: agl.zip
tag: ${{ github.ref }}
overwrite: true
body: "The zip file of agl driver"