Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 5a2ad47

Browse files
committed
chore: ci to publish installer package to winget
1 parent b66b761 commit 5a2ad47

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: GitGuardian scan
2+
3+
on:
4+
push:
5+
branches:
6+
- chore/publish-winget
7+
8+
jobs:
9+
scanning:
10+
name: GitGuardian scan
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0 # fetch all history so multiple commits can be scanned
17+
- name: GitGuardian scan
18+
uses: GitGuardian/ggshield/actions/[email protected]
19+
env:
20+
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
21+
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
22+
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
23+
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
24+
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}

.github/workflows/cortex-winget.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to Winget
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - chore/publish-winget
7+
8+
jobs:
9+
publish:
10+
runs-on: windows-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
- name: Install winget-cli
15+
run: |
16+
Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.0.11692/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle -OutFile Microsoft.DesktopAppInstaller.appxbundle
17+
Add-AppxPackage -Path Microsoft.DesktopAppInstaller.appxbundle
18+
winget --version
19+
- name: Publish package
20+
run: |
21+
winget create -i ../../pm-manifests/winget-manifest.yml

0 commit comments

Comments
 (0)