File tree Expand file tree Collapse file tree 2 files changed +59
-2
lines changed
Expand file tree Collapse file tree 2 files changed +59
-2
lines changed Original file line number Diff line number Diff line change 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+ 35+
36+ - name : Setup NuGet
37+ 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+
Original file line number Diff line number Diff line change @@ -115,5 +115,3 @@ To invoke the action do the following.
115115Create a new tag in the form "release* ". For example, "git tag -a
116116release_11 -m "some comment here"". Then execute git push with this
117117tag: "git push origin release_11". These should trigger the release creation.
118-
119-
You can’t perform that action at this time.
0 commit comments