Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 32 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,41 @@ jobs:
Token.Secret: ${{ secrets.TOKEN_SECRET }}
- 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
uses: bogdanbrudiu/simply-web-deploy
- name: Stop App Pool
uses: bogdanbrudiu/simply-web-deploy/Stop
with:
action: fetch&deploy
sync-action: " |
git config --global user.name \"CD bot\"
git config --global user.email \"\"
echo %date% %time% >> App_Data\dbtestfile.txt
git add App_Data\dbtestfile.txt
git commit -m \"update db file [skip actions]\"
git push"
website-name: ${{ secrets.WEBSITE_NAME }}
server-computer-name: ${{ secrets.SERVER_COMPUTER_NAME }}
server-username: ${{ secrets.SERVER_USERNAME }}
server-password: ${{ secrets.SERVER_PASSWORD }}
# skip-directory-path: '\\App_Data'
- name: Fetch App Pool
uses: bogdanbrudiu/simply-web-deploy/Fetch
with:
website-name: ${{ secrets.WEBSITE_NAME }}
server-computer-name: ${{ secrets.SERVER_COMPUTER_NAME }}
server-username: ${{ secrets.SERVER_USERNAME }}
server-password: ${{ secrets.SERVER_PASSWORD }}
- name: Backup DB
run: |
git config --global user.name "CD bot"
git config --global user.email ""
echo %date% %time% >> App_Data\dbtestfile_.txt
git add App_Data\dbtestfile.txt
git commit -m "update db file [skip actions]"
git push
- name: Deploy App Pool
uses: bogdanbrudiu/simply-web-deploy/Deploy
with:
website-name: ${{ secrets.WEBSITE_NAME }}
server-computer-name: ${{ secrets.SERVER_COMPUTER_NAME }}
server-username: ${{ secrets.SERVER_USERNAME }}
server-password: ${{ secrets.SERVER_PASSWORD }}
- name: Start App Pool
uses: bogdanbrudiu/simply-web-deploy/Start
with:
website-name: ${{ secrets.WEBSITE_NAME }}
server-computer-name: ${{ secrets.SERVER_COMPUTER_NAME }}
server-username: ${{ secrets.SERVER_USERNAME }}
server-password: ${{ secrets.SERVER_PASSWORD }}


27 changes: 24 additions & 3 deletions HamEventMVP.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoreMailer", "CoreMailer\CoreMailer\CoreMailer.csproj", "{3458928A-E6F3-4FA6-878B-B3729C14838B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "simply-web-deploy", "simply-web-deploy", "{6E07F384-23C4-43EC-BFB5-E34E871FB547}"
ProjectSection(SolutionItems) = preProject
simply-web-deploy\action.yml = simply-web-deploy\action.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{667EB339-38A6-4FB9-99E3-FFA71DB0787C}"
ProjectSection(SolutionItems) = preProject
Expand All @@ -29,6 +26,26 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{667E
simply-web-deploy\Scripts\Set-ApplicationPool.ps1 = simply-web-deploy\Scripts\Set-ApplicationPool.ps1
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Stop", "Stop", "{125AB4CA-BD4C-4C8E-8F27-62CBAE73D044}"
ProjectSection(SolutionItems) = preProject
simply-web-deploy\Stop\action.yml = simply-web-deploy\Stop\action.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Start", "Start", "{60B93305-2A05-4B1D-9955-7AE4CBDD5112}"
ProjectSection(SolutionItems) = preProject
simply-web-deploy\Start\action.yml = simply-web-deploy\Start\action.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Fetch", "Fetch", "{2B2766AF-6421-432F-BD0F-6CC5E305F18C}"
ProjectSection(SolutionItems) = preProject
simply-web-deploy\Fetch\action.yml = simply-web-deploy\Fetch\action.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Deploy", "Deploy", "{AB17FE00-A9F2-4882-8FD3-8A919F010F9A}"
ProjectSection(SolutionItems) = preProject
simply-web-deploy\Deploy\action.yml = simply-web-deploy\Deploy\action.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -57,6 +74,10 @@ Global
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{667EB339-38A6-4FB9-99E3-FFA71DB0787C} = {6E07F384-23C4-43EC-BFB5-E34E871FB547}
{125AB4CA-BD4C-4C8E-8F27-62CBAE73D044} = {6E07F384-23C4-43EC-BFB5-E34E871FB547}
{60B93305-2A05-4B1D-9955-7AE4CBDD5112} = {6E07F384-23C4-43EC-BFB5-E34E871FB547}
{2B2766AF-6421-432F-BD0F-6CC5E305F18C} = {6E07F384-23C4-43EC-BFB5-E34E871FB547}
{AB17FE00-A9F2-4882-8FD3-8A919F010F9A} = {6E07F384-23C4-43EC-BFB5-E34E871FB547}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {172F1AC0-54ED-4655-8A36-F090D38CBA73}
Expand Down
2 changes: 1 addition & 1 deletion simply-web-deploy