Reworked Gitea Actions
All checks were successful
Build / Build (push) Successful in 1m52s

This commit is contained in:
simon 2025-05-19 21:24:23 +02:00
parent ae2879de41
commit 1f05960ffc

View File

@ -1,33 +1,28 @@
name: ProtoGen Action Runner
on:
push:
branches:
- master
name: Build
on: [push]
jobs:
build:
Build:
runs-on: ubuntu-latest
container:
image: golang:1.23
image: golang:latest
options: --network host
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Build Codegen Binary
- run: |
apt-get update
apt-get install -y nodejs npm
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
- name: List files in the repository
run: |
make build
mkdir -p dist
mv alox.protogen dist/
- name: Upload Artifact
ls ${{ gitea.workspace }}
- run: go mod tidy
- run: make build
- run: ls -lah ${{ gitea.workspace }}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: alox-protogen
path: dist/alox.protogen
name: alox.protogen
path: ./alox.protogen
- run: echo "This job's status is ${{ job.status }}."