parent
28907f0fd1
commit
062b10a367
1 changed files with 8 additions and 6 deletions
|
@ -5,13 +5,15 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup go
|
# Step 1: Check out the code
|
||||||
uses: actions/setup-go@v5
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
go-version-file: '/workspace/ScheduleTogether/Backend/go.mod'
|
|
||||||
- run: go build -x -v -o=stbackend -buildvcs=true ./cmd/stbackend/main.go
|
|
||||||
|
|
||||||
|
# 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
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build-artifact
|
name: build-artifact
|
||||||
path: ./stbackend
|
path: ./Backend/stbackend
|
Loading…
Reference in a new issue