Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Sachs authored Apr 28, 2022
1 parent 3fc503d commit 648aa78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ jobs:
echo "Connected to server!"
rm -rf ${{ secrets.STAGING_DIRECTORY }}/SahneeBot-Linux64
unzip -d ${{ secrets.STAGING_DIRECTORY }} ${{ secrets.STAGING_DIRECTORY }}/build/artifact/SahneeBot-Linux64.zip
sudo systemctl stop ${{ secrets.SERVICE_NAME }}
rm -rf ${{ secrets.DEPLOY_DIRECTORY }}/*
cp -r ${{ secrets.STAGING_DIRECTORY }}/SahneeBot-Linux64/* ${{ secrets.DEPLOY_DIRECTORY }}
cp ${{ secrets.STAGING_APPSETTINGS }} ${{ secrets.DEPLOY_DIRECTORY }}/appsettings.json
sudo systemctl start ${{ secrets.SERVICE_NAME }}
- name: Block IP in Firewall
if: always()
run: ./hcloud firewall delete-rule github --source-ips ${{ steps.ip.outputs.ipv4 }}/32 --port 22 --protocol tcp --direction in --description "GitHub Actions - sahnee-bot"

0 comments on commit 648aa78

Please sign in to comment.