Skip to content

Commit

Permalink
Adds Github Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JudahGabriel committed May 12, 2023
1 parent 08039a5 commit c2cf592
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 --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 c2cf592

Please sign in to comment.