From 2ac5c070e36b3d8fa632f95f7602b8e52bf47f77 Mon Sep 17 00:00:00 2001 From: Muhammad Samiullah Siddiqui Date: Fri, 19 Jul 2024 03:05:54 +0500 Subject: [PATCH] tests --- .github/workflows/test.yml | 40 ++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 332e490..9d59817 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,16 +1,32 @@ -name: CI - -on: +on: push: - branches: - - main + branches: [main] jobs: - build: - runs-on: ubuntu-latest + build-and-sign: + runs-on: windows-latest + name: Build app and sign files with Trusted Signing steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Print a message - run: echo "Hello, GitHub Actions!" \ No newline at end of file + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: dotnet restore App + + - name: Build + run: dotnet build --configuration Release --no-restore WpfApp + + - name: Sign files with Trusted Signing + uses: azure/trusted-signing-action@v0.4.1 + with: + azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }} + azure-client-id: ${{ secrets.AZURE_CLIENT_ID }} + azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }} + endpoint: https://eus.codesigning.azure.net/ + trusted-signing-account-name: IDDCodeSigning + certificate-profile-name: CodeSigning + files-folder: ${{ github.workspace }}\Files + files-folder-filter: app + file-digest: SHA256 + timestamp-rfc3161: http://timestamp.acs.microsoft.com + timestamp-digest: SHA256 \ No newline at end of file