generated from marked/CSSharpTemplate
42 lines
931 B
YAML
42 lines
931 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
paths:
|
|
- "**.cs"
|
|
- "**.csproj"
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
DOTNET_VERSION: "8.0.407"
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-24.04
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set Date
|
|
run: echo "DATE=$(date +'%Y%m%dT%H%M%SZ')" >> $GITHUB_ENV
|
|
|
|
- name: Setup .NET Core
|
|
uses: https://github.com/actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
|
|
|
- name: Install Dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
run: dotnet build --configuration Release --no-restore
|
|
|
|
- name: Upload Build Artifact
|
|
uses: https://git.devmarked.win/actions/upload-artifact@v4
|
|
with:
|
|
name: build-${{ env.DATE }}.zip
|
|
path: src/bin/Release/net8.0
|