Skip to content

Create deploy-graph-editor-as-many.yml #18

Create deploy-graph-editor-as-many.yml

Create deploy-graph-editor-as-many.yml #18

name: "Deploy Graph Editor"
on:
push:
tags:
- "v*"
env:
PROJECT_PATH: GraphApplication/GraphApplication.csproj
jobs:
deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- run: dotnet restore ${{env.PROJECT_PATH}}
- run: dotnet build ${{env.PROJECT_PATH}} -c Release --no-restore -p:PublishSingleFile=true
- run: dotnet publish ${{env.PROJECT_PATH}} -c Release --self-contained -r win-x64 -p:PublishSingleFile=true --no-build
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
- uses: csexton/release-asset-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pattern: GraphApplication/bin/Release/net7.0-windows/win-x64/publish/*.exe
release-url: ${{ steps.create_release.outputs.upload_url}}