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 867fd5f commit fe5a8e4
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ jobs:
Build_Test_Deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- 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: ChristopheLav/iis-deploy@v1
with:
website-name: ${{ secrets.WEBSITE_NAME }}
msdeploy-service-url: ${{ secrets.SERVER_COMPUTER_NAME }}
msdeploy-username: ${{ secrets.SERVER_USERNAME }}
msdeploy-password: ${{ secrets.SERVER_PASSWORD }}
source-path: ${{ github.workspace }}HamSpecialEvent\HamSpecialEvent\publish\
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- 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: ChristopheLav/iis-deploy@v1
with:
website-name: ${{ secrets.WEBSITE_NAME }}
msdeploy-service-url: ${{ secrets.SERVER_COMPUTER_NAME }}
msdeploy-username: ${{ secrets.SERVER_USERNAME }}
msdeploy-password: ${{ secrets.SERVER_PASSWORD }}
source-path: ${{ github.workspace }}HamSpecialEvent\HamSpecialEvent\publish\

0 comments on commit fe5a8e4

Please sign in to comment.