Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanbrudiu authored Jul 26, 2024
1 parent 4a25ef6 commit 0db0f9c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: Build
environment: test
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]


jobs:
build:
Expand All @@ -31,6 +29,7 @@ jobs:
- name: Publish
run: dotnet publish HamEvent/HamEvent.csproj --configuration Release --framework net7.0 --output ./publish --runtime win-x64 --self-contained true -p:PublishTrimmed=false -p:PublishSingleFile=false
- name: Deploy
if: github.event_name != 'pull_request'
uses: rasmusbuchholdt/[email protected]
with:
website-name: ${{ secrets.WEBSITE_NAME }}
Expand Down

0 comments on commit 0db0f9c

Please sign in to comment.