Skip to content

Commit

Permalink
add agl.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Nachmanson <[email protected]>
  • Loading branch information
levnach committed Jan 15, 2022
1 parent efdb7bc commit 5777a20
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/agl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
on:
push:
tags:
- release* # You will need to provide a tag of the form 'relase_ ...' with your push command:
# For example git tag -a release_with_a_bug_fix -m "bug fix" && git push origin release_with_a_bug_fix
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/[email protected]

- name: Setup NuGet
uses: NuGet/[email protected]
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"

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,3 @@ To invoke the action do the following.
Create a new tag in the form "release*". For example, "git tag -a
release_11 -m "some comment here"". Then execute git push with this
tag: "git push origin release_11". These should trigger the release creation.


0 comments on commit 5777a20

Please sign in to comment.