chore(deps): update module puerkitobio/goquery to v1.10.1 #42
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
paths: | |
- ".github/**" | |
- "backend/**" | |
pull_request: | |
branches: | |
- master | |
name: Build Tennis Backend | |
jobs: | |
build: | |
name: Build & Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Go environment | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "1.23" # The Go version to download (if necessary) and use. | |
- name: Build | |
run: | | |
cd backend | |
go version | |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o tennis-tournament-finder-backend cmd/main.go | |
pwd | |
ls -la | |
- name: Deploy | |
uses: appleboy/[email protected] | |
if: github.event_name != 'pull_request' | |
with: | |
host: ${{ vars.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
port: ${{ vars.PORT }} | |
source: "backend/tennis-tournament-finder-backend" | |
target: ${{ secrets.DEPLOYMENT_PATH }} | |
strip_components: 1 | |
- name: Restart Service | |
uses: appleboy/ssh-action@master | |
if: github.event_name != 'pull_request' | |
with: | |
host: ${{ vars.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
port: ${{ vars.PORT }} | |
script: supervisorctl restart tennis-tournament-finder-backend |