2024-09-20 12:47:38 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: docker
|
2024-12-05 20:38:44 +01:00
|
|
|
container:
|
|
|
|
image: golang:latest
|
2024-09-20 12:47:38 +02:00
|
|
|
steps:
|
2024-12-05 21:33:16 +01:00
|
|
|
# Step 1: Check out the code
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
# Step 2: Set the working directory and build the project
|
2024-12-05 21:23:15 +01:00
|
|
|
- run: go build -x -v -o=stbackend -buildvcs=true ./cmd/stbackend/main.go
|
2024-12-05 21:33:16 +01:00
|
|
|
working-directory: ./Backend
|
2024-12-05 21:23:15 +01:00
|
|
|
|
2024-12-05 21:33:16 +01:00
|
|
|
# Step 3: Upload the build artifact
|
2024-09-20 12:47:38 +02:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: build-artifact
|
2024-12-05 21:33:16 +01:00
|
|
|
path: ./Backend/stbackend
|