Skip to content

Commit 677ba4c

Browse files
sebgodclaude
andcommitted
Initial commit
Add DIR.Lib NuGet package with rendering primitives (RGBAColor32, RectInt, PointInt, TextAlign, Renderer) published under SharpAstro. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 parents  commit 677ba4c

File tree

11 files changed

+625
-0
lines changed

11 files changed

+625
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI/CD
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
VERSION_PREFIX: 1.0.${{ github.run_number }}
11+
VERSION_REV: ${{ github.run_attempt }}
12+
VERSION_HASH: +${{ github.sha }}
13+
BUILD_CONF: Release
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: 10.0.x
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
- name: Build
26+
run: dotnet build -c $BUILD_CONF --no-restore -p:Version=${VERSION_PREFIX}${VERSION_REV}${VERSION_HASH} -p:FileVersion=${VERSION_PREFIX}.${VERSION_REV} -p:ContinuousIntegrationBuild=true
27+
- name: Upload NuGet package
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: nuget-packages
31+
path: '**/*.nupkg'
32+
retention-days: 5
33+
34+
publish-nuget:
35+
needs: build
36+
runs-on: ubuntu-latest
37+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
38+
steps:
39+
- name: Download NuGet packages
40+
uses: actions/download-artifact@v4
41+
with:
42+
name: nuget-packages
43+
- name: Push NuGet package
44+
run: dotnet nuget push **/*.nupkg -s nuget.org -k ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)