-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: Build Release(Dev) | ||
|
||
on: workflow_dispatch | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
build: | ||
|
@@ -40,19 +43,19 @@ jobs: | |
- name: 打包msix | ||
run: dart run msix:create --sign-msix false | ||
|
||
# - name: SignPath 签名 | ||
# if: env.TOKEN != '' | ||
# shell: pwsh | ||
# run: | | ||
# Install-Module -Name SignPath -Force -AllowClobber -Scope CurrentUser | ||
# Submit-SigningRequest ` | ||
# -InputArtifactPath "build/windows/x64/runner/Release/BangumiToday.msix" ` | ||
# -ApiToken "${env:TOKEN}" ` | ||
# -OrganizationId "df493769-e8b5-461d-84a8-e9cc2071d9b2" ` | ||
# -ProjectSlug "BangumiToday" ` | ||
# -SigningPolicySlug "Dev" ` | ||
# -OutputArtifactPath "BangumiToday.msix" ` | ||
# -WaitForCompletion | ||
- name: SignPath 签名 | ||
if: env.TOKEN != '' | ||
shell: pwsh | ||
run: | | ||
Install-Module -Name SignPath -Force -AllowClobber -Scope CurrentUser | ||
Submit-SigningRequest ` | ||
-InputArtifactPath "build/windows/x64/runner/Release/BangumiToday.msix" ` | ||
-ApiToken "${env:TOKEN}" ` | ||
-OrganizationId "df493769-e8b5-461d-84a8-e9cc2071d9b2" ` | ||
-ProjectSlug "BangumiToday" ` | ||
-SigningPolicySlug "Dev" ` | ||
-OutputArtifactPath "BangumiToday.msix" ` | ||
-WaitForCompletion | ||
- name: 上传 MSIX | ||
if: env.TOKEN != '' | ||
|
@@ -82,7 +85,7 @@ jobs: | |
- name: 发行Release | ||
uses: ncipollo/[email protected] | ||
with: | ||
commit: ${{ github.sha }} | ||
tag: ${{ github.ref }} | ||
artifacts: | | ||
BangumiToday.zip | ||
BTMuli.cer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters