Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/JudahGabriel/Chavah
Browse files Browse the repository at this point in the history
  • Loading branch information
JudahGabriel committed May 12, 2023
2 parents 7235542 + 70d42d3 commit 51a33fa
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and deploy Chavah

on:
push:
branches:
- master
workflow_dispatch:

# If this workflow is already running, cancel it.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true

- name: Build with dotnet
run: dotnet build Chavah.NetCore\Chavah.NetCore.csproj --configuration Release

- name: Write publish profile to directory
uses: DamianReeves/write-file-action@v1.2
with:
path: ${{ env.home }}/ChavahOnVm.pubxml
contents: |
${{ secrets.PUBLISH_PROFILE }}
write-mode: overwrite

- name: dotnet publish
run: dotnet publish -c Release -o Publish /p:PublishProfileFullPath=${{ env.home }}/ChavahOnVm.pubxml

0 comments on commit 51a33fa

Please sign in to comment.