22 lines
No EOL
657 B
YAML
22 lines
No EOL
657 B
YAML
on: [push]
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
# Step 1: Check out the code
|
|
- uses: actions/checkout@v3
|
|
|
|
# Step 2: Set up go environment
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version-file: '/workspace/ScheduleTogether/Backend/go.mod'
|
|
|
|
# Step 3: Set the working directory and build the project
|
|
- run: go build -x -v -o=stbackend -buildvcs=true ./cmd/stbackend/main.go
|
|
working-directory: /workspace/ScheduleTogether/Backend
|
|
|
|
# Step 4: Upload the build artifact
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: build-artifact
|
|
path: ./Backend/stbackend |