Skip to content

Commit 11c8d45

Browse files
committed
(#571) CI: basic NuGet publishing template
1 parent 45b8052 commit 11c8d45

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-FileCopyrightText: 2025 Cesium contributors <https://github.com/ForNeVeR/Cesium>
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
name: Release
6+
7+
on:
8+
push:
9+
branches: [ main ]
10+
pull_request:
11+
branches: [ main ]
12+
workflow_dispatch:
13+
schedule:
14+
- cron: '0 0 * * 0'
15+
16+
jobs:
17+
main:
18+
runs-on: ${{ matrix.environment }}
19+
strategy:
20+
matrix:
21+
environment:
22+
- macos-latest
23+
- ubuntu-latest
24+
- windows-latest
25+
fail-fast: false
26+
env:
27+
DOTNET_NOLOGO: 1
28+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
29+
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
30+
steps:
31+
- name: πŸ“ Fetch Sources πŸ“
32+
uses: actions/checkout@v4
33+
34+
- name: πŸ’‘ Perform Common Steps πŸ’‘
35+
uses: ./.github/workflows/perform-common-steps
36+
37+
- name: πŸ“¦ Pack Everything πŸ“¦
38+
shell: bash
39+
run: dotnet nuke PackCompilerBundle PackSdk PackTemplates
40+
41+
- name: βœ… Upload Artifacts βœ…
42+
# TODO
43+
# - Compiler
44+
# - Runtime
45+
# - SDK
46+
# - Templates
47+
48+
- name: βœ… Publish to NuGet βœ…
49+
# TODO

β€ŽCesium.slnβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ EndProject
2626
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{C08E4851-DE2E-490E-970D-4F6A0A902A98}"
2727
ProjectSection(SolutionItems) = preProject
2828
.github\workflows\run-build-and-unit-tests.yml = .github\workflows\run-build-and-unit-tests.yml
29+
.github\workflows\release.yml = .github\workflows\release.yml
2930
EndProjectSection
3031
EndProject
3132
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cesium.Parser", "Cesium.Parser\Cesium.Parser.csproj", "{537F83F5-67B1-4863-A557-CF08149A99CB}"

0 commit comments

Comments
Β (0)