From e8ca0a43791317cc836f5f376ac8749c270812a0 Mon Sep 17 00:00:00 2001 From: timoknapp Date: Mon, 30 Dec 2024 13:01:07 +0100 Subject: [PATCH] ci: update actions workflow --- .github/workflows/backend.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index a64b13f..c58cc05 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -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. @@ -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 }}