Skip to content

在项目中包含 snowflake.png 文件 #57

在项目中包含 snowflake.png 文件

在项目中包含 snowflake.png 文件 #57

Workflow file for this run

name: publish to nuget
on:
push:
branches:
- master # Default release branch
jobs:
publish:
name: list on nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
include-prerelease: true
# Publish
- name: publish on version change
id: publish_nuget
uses: rohith/publish-nuget@v2
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: Snowflake/Snowflake.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
PACKAGE_NAME: Snowflake.CSharp
- name: publish on version change
uses: rohith/publish-nuget@v2
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: Snowflake.Redis/Snowflake.Redis.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
PACKAGE_NAME: Snowflake.Redis.CSharp