Backend/.forgejo/workflows/build.yml

19 lines
514 B
YAML
Raw Normal View History

on: [push]
jobs:
build:
runs-on: docker
2024-12-05 20:38:44 +01:00
container:
image: golang:latest
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
- uses: actions/upload-artifact@v3
with:
name: build-artifact
2024-12-05 21:33:16 +01:00
path: ./Backend/stbackend