on: [push] jobs: build: runs-on: docker container: image: golang:latest steps: # Step 1: Check out the code - uses: actions/checkout@v4 # Step 2: Set the working directory and build the project - run: go build -x -v -o=stbackend -buildvcs=true ./cmd/stbackend/main.go working-directory: ./Backend # Step 3: Upload the build artifact - uses: actions/upload-artifact@v3 with: name: build-artifact path: ./Backend/stbackend