Skip to content

Commit

Permalink
chore: ci to publish installer package to winget
Browse files Browse the repository at this point in the history
  • Loading branch information
dungpham91 committed Jul 24, 2024
1 parent b66b761 commit 5a2ad47
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cortex-gitguardian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: GitGuardian scan

on:
push:
branches:
- chore/publish-winget

jobs:
scanning:
name: GitGuardian scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all history so multiple commits can be scanned
- name: GitGuardian scan
uses: GitGuardian/ggshield/actions/[email protected]
env:
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
21 changes: 21 additions & 0 deletions .github/workflows/cortex-winget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to Winget

# on:
# push:
# branches:
# - chore/publish-winget

jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install winget-cli
run: |
Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.0.11692/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle -OutFile Microsoft.DesktopAppInstaller.appxbundle
Add-AppxPackage -Path Microsoft.DesktopAppInstaller.appxbundle
winget --version
- name: Publish package
run: |
winget create -i ../../pm-manifests/winget-manifest.yml

0 comments on commit 5a2ad47

Please sign in to comment.