Skip to content

Commit

Permalink
ci: update actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
timoknapp committed Dec 30, 2024
1 parent 902a686 commit e8ca0a4
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Go environment
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: "1.23" # The Go version to download (if necessary) and use.

Expand All @@ -42,20 +42,9 @@ jobs:
source: "backend/tennis-tournament-finder-backend"
target: ${{ secrets.DEPLOYMENT_PATH }}
strip_components: 1
# timeout: 120s

# - name: Deploy
# uses: garygrossgarten/github-action-scp@release
# if: github.event_name != 'pull_request'
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# privateKey: ${{ secrets.SSH_KEY }}
# local: "backend/tennis-tournament-finder-backend"
# remote: ${{ secrets.DEPLOYMENT_PATH }}

- name: Restart Service
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v1.2.0
if: github.event_name != 'pull_request'
with:
host: ${{ secrets.HOST }}
Expand Down

0 comments on commit e8ca0a4

Please sign in to comment.