-
Notifications
You must be signed in to change notification settings - Fork 48
161 lines (135 loc) Β· 7.28 KB
/
Copy pathrelease.yml
File metadata and controls
161 lines (135 loc) Β· 7.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# SPDX-FileCopyrightText: 2025-2026 Cesium contributors <https://github.com/ForNeVeR/Cesium>
#
# SPDX-License-Identifier: MIT
name: Release
on:
push:
branches:
- main
- renovate/**
tags: [ 'v*' ]
pull_request:
branches: [ main ]
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
main:
runs-on: ${{ matrix.environment.image }}
name: release.${{ matrix.environment.name }}
strategy:
matrix:
environment:
- image: macos-26
name: macos
- image: ubuntu-24.04
name: linux
- image: windows-2025
name: windows
fail-fast: false
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: π Fetch Sources π
uses: actions/checkout@v6
- name: π‘ Perform Common Steps π‘
uses: ./.github/workflows/perform-common-steps
- name: π¦ Pack Everything π¦
shell: bash
run: dotnet nuke PackAllCompilerRuntimeSpecificBundles PackCompilerBundleNuPkg PackCompilerTool PackSdk PackTemplates --configuration Release
- id: version
name: π Get Version π
shell: pwsh
run: echo "version=$(scripts/Get-Version.ps1 -RefName $env:GITHUB_REF)" >> $env:GITHUB_OUTPUT
- name: β
Upload Compiler β
uses: actions/upload-artifact@v7
if: runner.os == 'Linux'
with:
if-no-files-found: 'error'
name: Compiler
path: |-
./artifacts/package/release/Cesium.Compiler.Bundle.${{ steps.version.outputs.version }}.nupkg
./artifacts/package/release/Cesium.Compiler.Bundle.linux-arm64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.linux-x64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.osx-arm64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.osx-x64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.win-arm64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.win-x64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.win-x86.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.${{ steps.version.outputs.version }}.nupkg
./artifacts/package/release/Cesium.Compiler.${{ steps.version.outputs.version }}.snupkg
- name: β
Upload Runtime β
uses: actions/upload-artifact@v7
if: runner.os == 'Linux'
with:
if-no-files-found: 'error'
name: Runtime
path: |-
./artifacts/package/release/Cesium.Runtime.${{ steps.version.outputs.version }}.nupkg
./artifacts/package/release/Cesium.Runtime.${{ steps.version.outputs.version }}.snupkg
- name: β
Upload SDK β
uses: actions/upload-artifact@v7
if: runner.os == 'Linux'
with:
if-no-files-found: 'error'
name: SDK
path: |-
./artifacts/package/release/Cesium.Sdk.${{ steps.version.outputs.version }}.nupkg
- name: β
Upload Templates β
uses: actions/upload-artifact@v7
if: runner.os == 'Linux'
with:
if-no-files-found: 'error'
name: Templates
path: |-
./artifacts/package/release/Cesium.Templates.${{ steps.version.outputs.version }}.nupkg
- name: π Read changelog π
uses: ForNeVeR/ChangelogAutomation.action@v2
with:
output: ./release-notes.md
- name: β
Upload the changelog β
uses: actions/upload-artifact@v7
if: runner.os == 'Linux'
with:
if-no-files-found: 'error'
name: release-notes
path: |-
./release-notes.md
- if: startsWith(github.ref, 'refs/tags/v') && runner.os == 'Linux'
name: π Create a release π
uses: softprops/action-gh-release@v3
with:
body_path: ./release-notes.md
files: |-
./artifacts/package/release/Cesium.Compiler.Bundle.${{ steps.version.outputs.version }}.nupkg
./artifacts/package/release/Cesium.Compiler.Bundle.linux-arm64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.linux-x64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.osx-arm64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.osx-x64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.win-arm64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.win-x64.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.Bundle.win-x86.${{ steps.version.outputs.version }}.zip
./artifacts/package/release/Cesium.Compiler.${{ steps.version.outputs.version }}.nupkg
./artifacts/package/release/Cesium.Compiler.${{ steps.version.outputs.version }}.snupkg
./artifacts/package/release/Cesium.Runtime.${{ steps.version.outputs.version }}.nupkg
./artifacts/package/release/Cesium.Runtime.${{ steps.version.outputs.version }}.snupkg
./artifacts/package/release/Cesium.Sdk.${{ steps.version.outputs.version }}.nupkg
./artifacts/package/release/Cesium.Templates.${{ steps.version.outputs.version }}.nupkg
name: Cesium v${{ steps.version.outputs.version }}
- if: startsWith(github.ref, 'refs/tags/v') && runner.os == 'Linux'
name: π¦ Publish Compiler Bundle π¦
run: dotnet nuget push ./artifacts/package/release/Cesium.Compiler.Bundle.${{ steps.version.outputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && runner.os == 'Linux'
name: π¦ Publish Compiler π¦
run: dotnet nuget push ./artifacts/package/release/Cesium.Compiler.${{ steps.version.outputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && runner.os == 'Linux'
name: π¦ Publish Runtime π¦
run: dotnet nuget push ./artifacts/package/release/Cesium.Runtime.${{ steps.version.outputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && runner.os == 'Linux'
name: π¦ Publish SDK π¦
run: dotnet nuget push ./artifacts/package/release/Cesium.Sdk.${{ steps.version.outputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && runner.os == 'Linux'
name: π¦ Publish Templates π¦
run: dotnet nuget push ./artifacts/package/release/Cesium.Templates.${{ steps.version.outputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}