Skip to content

Commit 437a473

Browse files
committed
actions++
1 parent b6f6e4d commit 437a473

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish MAIN artifacts to NUGET
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
7+
main_job:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write # required for pushing the tag
11+
12+
steps:
13+
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Define Version at GHENV_PACKAGEVERSION
18+
run: |
19+
chmod +x ./.github/workflows/FormatSemver.sh
20+
./.github/workflows/FormatSemver.sh "${{ vars.SharpGLTF_Version }}" >> $GITHUB_ENV
21+
22+
- name: build
23+
uses: ./.github/actions/Build
24+
with:
25+
nuget-semver: "${{env.GHENV_PACKAGEVERSION}}"
26+
27+
- name: Download all artifacts
28+
uses: actions/download-artifact@v4
29+
with:
30+
name: nuget-packages
31+
32+
- name: Push to NuGet
33+
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.SharpGLTF_PublishToNuget}} --source https://api.nuget.org/v3/index.json
34+
35+
- name: create tag
36+
uses: ./.github/actions/PushGithubTag
37+
with:
38+
tag-name: "${{env.GHENV_PACKAGEVERSION}}"
39+
message: "new tag for ${{env.GHENV_PACKAGEVERSION}}"

.github/workflows/PublishToNuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish artifacts to NUGET
1+
name: Publish PREVIEW artifacts to NUGET
22

33
on: workflow_dispatch
44

SharpGLTF.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1010
.github\workflows\BuildPackages.yml = .github\workflows\BuildPackages.yml
1111
.github\workflows\IncrementAlpha.yml = .github\workflows\IncrementAlpha.yml
1212
.github\workflows\IncrementVersion.yml = .github\workflows\IncrementVersion.yml
13+
.github\workflows\PublishMainToNuget.yml = .github\workflows\PublishMainToNuget.yml
1314
.github\workflows\PublishToGithub.yml = .github\workflows\PublishToGithub.yml
1415
.github\workflows\PublishToNuget.yml = .github\workflows\PublishToNuget.yml
1516
.github\workflows\PushGithubTag.yml = .github\workflows\PushGithubTag.yml

0 commit comments

Comments
 (0)