mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 11:39:45 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11e894a29a | ||
|
|
94affd8bf3 |
@@ -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:
|
||||||
@@ -38,14 +40,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: AllOfUs.MiraAPI.nupkg
|
name: AllOfUs.MiraAPI.nupkg
|
||||||
path: MiraAPI/bin/Release/AllOfUs.MiraAPI.*.nupkg
|
path: MiraAPI/bin/Release/AllOfUs.MiraAPI.*.nupkg
|
||||||
|
|
||||||
- uses: softprops/action-gh-release@v2
|
- uses: softprops/action-gh-release@v2
|
||||||
if: github.ref_type == 'tag'
|
if: github.ref_type == 'tag'
|
||||||
with:
|
with:
|
||||||
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 }}
|
||||||
Reference in new issue
Block a user