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 }}