Skip to content

Generate a id to name map for packets (#466) #46

Generate a id to name map for packets (#466)

Generate a id to name map for packets (#466) #46

Workflow file for this run

name: Nuget
on:
workflow_dispatch:
push:
branches: ["1.21.x"]
# Publish semver tags as releases.
tags: ["v*.*.*"]
# only publish when we change a file here
paths:
- "Obsidian.API/**/*.cs"
- "Obsidian.API/*.csproj"
- "Obsidian/Assets/**/*.json"
- "Obsidian.SourceGenerators/**/*.cs"
- "Obsidian.SourceGenerators/*.csproj"
- ".github/workflows/nuget-push.yml"
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
jobs:
nuget-publish:
name: Package Commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
9
8
7
- name: Pack n Push
run: |
cd Obsidian.API
dotnet build -c Release -p:Version=1.0.0-${{ github.run_number }}-${{ github.sha }}
dotnet pack -c Release -o build -p:Version=1.0.0-nightly-${{ github.run_number }}
dotnet nuget push "build/*" --skip-duplicate -k ${{ secrets.NUGET_ORG_API_KEY }} -s https://api.nuget.org/v3/index.json