Skip to content

Commit

Permalink
ci: pack
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Sep 27, 2024
1 parent 16457fa commit c7610e3
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Bug report / 错误报告
about: Create a report to help us improve / 创建报告以帮助我们改进
title: "[bug] "
labels: bug
---

<!--
请提供下述完整信息以便快速定位问题 / Please provide the following information to quickly locate the problem
-->

- 系统环境 / System Environment:


- 版本号 / Version:


- 问题描述 / Description of the issue:


- 复现步骤 / Reproduction steps:

7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/normal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Feel free to express / 随便写写
about: Record something / 简单写写记录记录
---

- Feel free to express yourself / 请自由发挥

9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: I have a question / 我有疑问
about: Solve your problem / 解决你的疑问
title: "[question] "
labels: question
---

- Problem Description / 问题描述

9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/suggestion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: I have suggestions / 我有建议
about: Your suggestions may benefit everyone / 你的建议可能让所有人受益
title: "[suggestion] "
labels: suggestion
---

- Your suggestions / 你的建议

39 changes: 39 additions & 0 deletions .github/workflows/library.nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: pack

on:
release:
types: [created]
push:
branches:
- master

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x

- name: Setup Windows SDK
uses: GuillaumeFalourd/[email protected]

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Pack
run: dotnet pack src\Flurib\Flurib.csproj -c Release --no-build -o out

- name: Push NuGet package
# run: dotnet nuget push "out\*.nupkg" -k ${{secrets.NUGET_AUTH_TOKEN}} --source https://api.nuget.org/v3/index.json
uses: actions/upload-artifact@v3
with:
name: nuget-packages
path: out/*.nupkg

0 comments on commit c7610e3

Please sign in to comment.