-
-
Notifications
You must be signed in to change notification settings - Fork 77
39 lines (29 loc) · 1.03 KB
/
PublishMainToNuget.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
39
name: Publish MAIN artifacts to NUGET
on: workflow_dispatch
jobs:
main_job:
runs-on: ubuntu-latest
permissions:
contents: write # required for pushing the tag
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Define Version at GHENV_PACKAGEVERSION
run: |
chmod +x ./.github/workflows/FormatSemver.sh
./.github/workflows/FormatSemver.sh "${{ vars.SharpGLTF_Version }}" >> $GITHUB_ENV
- name: build
uses: ./.github/actions/Build
with:
nuget-semver: "${{env.GHENV_PACKAGEVERSION}}"
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
name: nuget-packages
- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.SharpGLTF_PublishToNuget}} --source https://api.nuget.org/v3/index.json
- name: create tag
uses: ./.github/actions/PushGithubTag
with:
tag-name: "${{env.GHENV_PACKAGEVERSION}}"
message: "new tag for ${{env.GHENV_PACKAGEVERSION}}"