Compare commits

..
2 Commits
Author SHA1 Message Date
Sameer Umar 11e894a29a Add NuGet login step and update push command 2026-10-19 17:20:30 +00:00
Atony 94affd8bf3 Merge pull request #113 from All-Of-Us-Mods/dev
Next MiraAPI release
2026-10-18 18:00:39 -05:00
+10 -1
View File
@@ -5,6 +5,8 @@ on: ["workflow_dispatch", "push", "pull_request"]
jobs: jobs:
build: build:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
permissions:
id-token: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -45,7 +47,14 @@ jobs:
draft: true draft: true
files: MiraAPI/bin/Release/net6.0/MiraAPI.dll files: MiraAPI/bin/Release/net6.0/MiraAPI.dll
- name: NuGet login
if: github.ref_type == 'tag'
uses: NuGet/login@v1
id: login
with:
user: xtracube
- name: Push NuGet package - name: Push NuGet package
if: github.ref_type == 'tag' if: github.ref_type == 'tag'
run: | run: |
dotnet nuget push MiraAPI/bin/Release/AllOfUs.MiraAPI.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} dotnet nuget push MiraAPI/bin/Release/AllOfUs.MiraAPI.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs.NUGET_API_KEY }}