summaryrefslogtreecommitdiffstats
path: root/.github/workflows/workflow.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/workflow.yml')
-rw-r--r--.github/workflows/workflow.yml29
1 files changed, 27 insertions, 2 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index e781dbdf9..79632412c 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -132,7 +132,7 @@ jobs:
run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json
- name: Check | Detect Changes
- uses: reviewdog/action-suggester@v1.11.0
+ uses: reviewdog/action-suggester@v1.12.0
with:
tool_name: starship config-schema
filter_mode: nofilter
@@ -201,7 +201,9 @@ jobs:
- name: Build | Installer [Windows]
continue-on-error: true
if: matrix.os == 'windows-latest' && matrix.rust == 'stable'
- run: cargo wix --dbg-build -v --nocapture -I install/windows/main.wxs
+ run: >
+ cargo wix --dbg-build -v --nocapture -I install/windows/main.wxs
+ --output target/debug/starship-x86_64-pc-windows-msvc.msi
- name: Build | Chocolatey Package [Windows]
continue-on-error: true
@@ -219,6 +221,29 @@ jobs:
env:
STARSHIP_VERSION: v1.2.3
+ - name: Sign | Upload Executable [Windows]
+ uses: actions/upload-artifact@v4
+ continue-on-error: true
+ if: matrix.os == 'windows-latest' && matrix.rust == 'stable' && github.event_name == 'push' && github.repository == 'starship/starship'
+ with:
+ name: unsigned-artifacts-dbg
+ path: |
+ target/debug/starship.exe
+ target/debug/starship-x86_64-pc-windows-msvc.msi
+
+ - name: Sign | Sign [Windows]
+ uses: signpath/github-action-submit-signing-request@v0.3
+ continue-on-error: true
+ if: matrix.os == 'windows-latest' && matrix.rust == 'stable' && github.event_name == 'push' && github.repository == 'starship/starship'
+ with:
+ api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
+ organization-id: '${{ vars.SIGNPATH_ORGANIZATION_ID }}'
+ project-slug: 'starship'
+ github-artifact-name: 'unsigned-artifacts-dbg'
+ signing-policy-slug: 'test-signing'
+ wait-for-completion: true
+ output-artifact-directory: target/debug
+
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: github.repository == 'starship/starship'