vpenades 1 rok temu
rodzic
commit
437a473880

+ 39 - 0
.github/workflows/PublishMainToNuget.yml

@@ -0,0 +1,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}}"

+ 1 - 1
.github/workflows/PublishToNuget.yml

@@ -1,4 +1,4 @@
-name: Publish artifacts to NUGET
+name: Publish PREVIEW artifacts to NUGET
 
 on: workflow_dispatch
     

+ 1 - 0
SharpGLTF.sln

@@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
 		.github\workflows\BuildPackages.yml = .github\workflows\BuildPackages.yml
 		.github\workflows\IncrementAlpha.yml = .github\workflows\IncrementAlpha.yml
 		.github\workflows\IncrementVersion.yml = .github\workflows\IncrementVersion.yml
+		.github\workflows\PublishMainToNuget.yml = .github\workflows\PublishMainToNuget.yml
 		.github\workflows\PublishToGithub.yml = .github\workflows\PublishToGithub.yml
 		.github\workflows\PublishToNuget.yml = .github\workflows\PublishToNuget.yml
 		.github\workflows\PushGithubTag.yml = .github\workflows\PushGithubTag.yml