Skip to content

Commit

Permalink
fix: Build solution will include sample
Browse files Browse the repository at this point in the history
  • Loading branch information
BiDuang committed Feb 17, 2024
1 parent 699fb72 commit 7353f69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
10 changes: 2 additions & 8 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ProjBobcat Pull Request Standard Template
<!-- 请注意,如果你的 PR 还未完工,请务必将 PR 标题开头附上 (WIP) 并将通过 PR 提交按钮侧的箭头提交为 "Draft" 状态以避免意外的合并,完成你的工作后,再将 PR 标记为 "Read for review"
<!-- ProjBobcat Pull Request Standard Template
请注意,如果你的 PR 还未完工,请务必将 PR 标题开头附上 (WIP) 并将通过 PR 提交按钮侧的箭头提交为 "Draft" 状态以避免意外的合并,完成你的工作后,再将 PR 标记为 "Read for review"
Please note that if your PR is not yet complete, be sure to start the PR title with (WIP) and submit it as a "Draft" to avoid accidental merging by using the arrow next to the PR submission button.
Once your work is finished, you can then mark the PR as "Ready for review." -->

Expand All @@ -13,11 +13,6 @@

- [ ] 预期的目标都已经实现 All expected objectives have been achieved
- [ ] 已经在本地测试了所有更改 All changes have been tested locally
- [ ] 代码不含有破坏性行为功能* The code does not contain any destructive behavior features*
- [ ] 同意遵守社区守则和贡献规范 Agree to adhere to the community guidelines and contribution standards

<!-- *:例如 计划外的大范围自动格式化,恶意回退主分支 等
For example, extensive automatic formatting for unplanned changes, and malicious master branch rollbacks, among others.-->

## 关联事件 Related
<!-- 如果这个 PR 是为了完成/修复某个 Issue 或 Discussion, 请在此输入其可跳转编号或附上超链接,否则请填无
Expand All @@ -33,4 +28,3 @@
无 N/A

<!-- 以下部分将由 AI 自动生成 The following parts will be automatically generated by AI -->
---
6 changes: 3 additions & 3 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
with:
fallback: 1.0.0
- name: Restore packages
run: dotnet restore ProjBobcat/ProjBobcat.sln
run: dotnet restore ProjBobcat/ProjBobcat/ProjBobcat.csproj
- name: Build the project
run: dotnet build ProjBobcat/ProjBobcat.sln -c Release --no-restore
run: dotnet build ProjBobcat/ProjBobcat/ProjBobcat.csproj -c Release --no-restore
- name: Create the package
run: $tag="${{ steps.previoustag.outputs.tag }}".replace("v",""); dotnet pack ProjBobcat/ProjBobcat.sln -c Release -p:PackageVersion="$tag-CI${{ github.sha }}-beta" --no-build --no-restore -o .
run: $tag="${{ steps.previoustag.outputs.tag }}".replace("v",""); dotnet pack ProjBobcat/ProjBobcat/ProjBobcat.csproj -c Release -p:PackageVersion="$tag-CI${{ github.sha }}-beta" --no-build --no-restore -o .
- name: Publish the package to NuGet.org
run: dotnet nuget push *.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
dotnet-version: 8.0
- uses: actions/checkout@v4
- name: Restore packages
run: dotnet restore ProjBobcat/ProjBobcat.sln
run: dotnet restore ProjBobcat/ProjBobcat/ProjBobcat.csproj
- name: Build the project
run: dotnet build ProjBobcat/ProjBobcat.sln -c Release --no-restore
run: dotnet build ProjBobcat/ProjBobcat/ProjBobcat.csproj -c Release --no-restore
- name: Create the package
run: $tag=${{ github.ref }}.replace("v",""); dotnet pack ProjBobcat/ProjBobcat.sln -c Release -p:PackageVersion=$tag --no-build --no-restore -o .
run: $tag=${{ github.ref }}.replace("v",""); dotnet pack ProjBobcat/ProjBobcat/ProjBobcat.csproj -c Release -p:PackageVersion=$tag --no-build --no-restore -o .
- name: Publish the package to NuGet.org
run: dotnet nuget push *.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json

0 comments on commit 7353f69

Please sign in to comment.