Add build script.

This commit is contained in:
H. Utku Maden 2025-11-09 13:23:51 +03:00
parent e196d5f50f
commit e9d7960409

View File

@ -0,0 +1,27 @@
name: Build
run-name: Building with docker container.
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu/dotnet-deps:stable
env:
REFUEL_API_KEY: "${{secrets.REFUEL_API_KEY}}"
NUGET_USER_NAME: "${{vars.NUGET_USER_NAME}}"
NUGET_INDEX: "${{vars.NUGET_INDEX}}"
volumes:
- ${{ gitea.workspace }}:/home/refuel/src
steps:
- name: Check repository out.
uses: actions/checkout@v3
with:
submodules: recursive
- name: Run Build Script
run: dotnet build -c Release
- name: Add nuget source.
run: dotnet nuget add source -n ReFuel -u "$NUGET_USER_NAME" -p "$REFUEL_API_KEY" --store-password-in-clear-text "$NUGET_INDEX"
- name: Push Nuget Packages
run: dotnet nuget push -s ReFuel ReFuel.Gltf/bin/*/*.nupkg