-
Notifications
You must be signed in to change notification settings - Fork 16
38 lines (33 loc) · 1.05 KB
/
nuget-public.yml
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
name: Build for Nuget.org
on:
workflow_dispatch:
jobs:
release-and-publish:
env:
NUGET_PACKAGE_VERSION_MAJOR: 0
NUGET_PACKAGE_VERSION_MINOR: ${{ github.run_number }}
NUGET_PACKAGE_VERSION_PATCH: 0
runs-on: windows-2022
name: Swift/WinRT Release Build & Publish
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ./.github/actions/windows-build
env:
NUGET_PACKAGE_VERSION: ${{ env.NUGET_PACKAGE_VERSION_MAJOR}}.${{env.NUGET_PACKAGE_VERSION_MINOR }}.${{env.NUGET_PACKAGE_VERSION_PATCH }}
with:
config: release
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Nuget
shell: cmd
run: |
cmake --build --preset release --target nuget
- name: Publish NuGet Package
uses: actions/upload-artifact@v3
with:
name: Nuget
path: ${{ github.workspace }}\build\release\*.nupkg