mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-12 05:08:58 +08:00
chore(ci): 更新发布工作流配置
- 添加 .NET 10.0 环境设置步骤 - 将密码参数从 secrets.GITHUB_TOKEN 替换为 github.token - 将环境变量中的 secrets.GITHUB_TOKEN 替换为 github.token
This commit is contained in:
parent
46d8a7d4e2
commit
1e092c07d3
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
@ -103,6 +103,11 @@ jobs:
|
|||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v5
|
||||||
|
with:
|
||||||
|
dotnet-version: 10.0.x
|
||||||
|
|
||||||
- name: Download package artifacts
|
- name: Download package artifacts
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
@ -171,7 +176,7 @@ jobs:
|
|||||||
dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
|
dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
|
||||||
--name github \
|
--name github \
|
||||||
--username "${{ github.repository_owner }}" \
|
--username "${{ github.repository_owner }}" \
|
||||||
--password "${{ secrets.GITHUB_TOKEN }}" \
|
--password "${{ github.token }}" \
|
||||||
--store-password-in-clear-text
|
--store-password-in-clear-text
|
||||||
|
|
||||||
- name: Push all packages to GitHub Packages
|
- name: Push all packages to GitHub Packages
|
||||||
@ -241,4 +246,4 @@ jobs:
|
|||||||
sbom-spdx-validation.txt
|
sbom-spdx-validation.txt
|
||||||
sbom-cyclonedx-validation.txt
|
sbom-cyclonedx-validation.txt
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user