Skip to content

Commit 5777a20

Browse files
committed
add agl.yml
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent efdb7bc commit 5777a20

File tree

2 files changed

+59
-2
lines changed

2 files changed

+59
-2
lines changed

.github/workflows/agl.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
on:
2+
push:
3+
tags:
4+
- release* # You will need to provide a tag of the form 'relase_ ...' with your push command:
5+
# For example git tag -a release_with_a_bug_fix -m "bug fix" && git push origin release_with_a_bug_fix
6+
name: Create Release
7+
8+
jobs:
9+
build:
10+
name: Create Release
11+
runs-on: windows-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@master
15+
- name: Create Release
16+
id: create_release
17+
uses: actions/create-release@latest
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
20+
with:
21+
tag_name: ${{ github.ref }}
22+
release_name: Release ${{ github.ref }}
23+
draft: false
24+
prerelease: false
25+
26+
deploy:
27+
runs-on: windows-latest
28+
steps:
29+
- name: Checkout Code
30+
uses: actions/checkout@v1
31+
32+
33+
- name: Add msbuild to PATH
34+
uses: microsoft/[email protected]
35+
36+
- name: Setup NuGet
37+
uses: NuGet/[email protected]
38+
env:
39+
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
40+
41+
- name: Restore NuGet Packages
42+
run: nuget restore GraphLayout/GraphLayout.sln
43+
44+
- name: Build agl.csproj
45+
run: msbuild GraphLayout\tools\agl\agl.csproj /p:Configuration=Release /p:Platform="AnyCPU" /p:DeployOnBuild=true /p:PublishProfile=FolderProfile
46+
47+
- name: aglzip
48+
run: 7z a agl.zip .\GraphLayout\tools\agl\bin\Release -r
49+
50+
- name: Upload binaries to release
51+
uses: svenstaro/upload-release-action@v2
52+
with:
53+
repo_token: ${{ secrets.GITHUB_TOKEN }}
54+
file: agl.zip
55+
asset_name: agl.zip
56+
tag: ${{ github.ref }}
57+
overwrite: true
58+
body: "The zip file of agl driver"
59+

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,3 @@ To invoke the action do the following.
115115
Create a new tag in the form "release*". For example, "git tag -a
116116
release_11 -m "some comment here"". Then execute git push with this
117117
tag: "git push origin release_11". These should trigger the release creation.
118-
119-

0 commit comments

Comments
 (0)