Skip to content

Commit

Permalink
Add publish steps
Browse files Browse the repository at this point in the history
  • Loading branch information
SingletonSean committed Feb 19, 2021
1 parent 3c4f85c commit 3306814
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-class-commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Deploy Class Commands"

on:
push:
tags:
- "class-commands/v*"

env:
PROJECT_PATH: ClassCommands/ClassCommands.csproj

jobs:
deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x

- run: dotnet restore ${{ env.PROJECT_PATH }}

- run: dotnet build ${{ env.PROJECT_PATH }} -c Release --no-restore

- run: dotnet publish ${{ env.PROJECT_PATH }} -c Release --self-contained -r win-x64 -p:PublishSingleFile=true

0 comments on commit 3306814

Please sign in to comment.