Skip to content

Commit e81c7e2

Browse files
committed
Cleanup and retention days
Cleanup of the file and added retention days to 1 week
1 parent 1887626 commit e81c7e2

1 file changed

Lines changed: 2 additions & 108 deletions

File tree

.github/workflows/build_dotnet.yml

Lines changed: 2 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,7 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
6-
# This workflow will build, test, sign and package a WPF or Windows Forms desktop application
7-
# built on .NET Core.
8-
# To learn how to migrate your existing application to .NET Core,
9-
# refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework
10-
#
11-
# To configure this workflow:
12-
#
13-
# 1. Configure environment variables
14-
# GitHub sets default environment variables for every workflow run.
15-
# Replace the variables relative to your project in the "env" section below.
16-
#
17-
# 2. Signing
18-
# Generate a signing certificate in the Windows Application
19-
# Packaging Project or add an existing signing certificate to the project.
20-
# Next, use PowerShell to encode the .pfx file using Base64 encoding
21-
# by running the following Powershell script to generate the output string:
22-
#
23-
# $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte
24-
# [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt'
25-
#
26-
# Open the output file, SigningCertificate_Encoded.txt, and copy the
27-
# string inside. Then, add the string to the repo as a GitHub secret
28-
# and name it "Base64_Encoded_Pfx."
29-
# For more information on how to configure your signing certificate for
30-
# this workflow, refer to https://github.com/microsoft/github-actions-for-desktop-apps#signing
31-
#
32-
# Finally, add the signing certificate password to the repo as a secret and name it "Pfx_Key".
33-
# See "Build the Windows Application Packaging project" below to see how the secret is used.
34-
#
35-
# For more information on GitHub Actions, refer to https://github.com/features/actions
36-
# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications,
37-
# refer to https://github.com/microsoft/github-actions-for-desktop-apps
38-
391
name: .NET Core Desktop
402

413
on:
42-
push:
4+
# push:
435
# branches: [ "Development" ]
446

457
pull_request:
@@ -75,77 +37,9 @@ jobs:
7537
run: |
7638
dotnet build ${{ env.Solution }} --nologo -v quiet -c ${{ matrix.configuration }}
7739
78-
- name: List files
79-
run: |
80-
echo "Listing files in bin/${{ matrix.configuration }}"
81-
ls -la bin/${{ matrix.configuration }}
82-
8340
- name: Upload artifact
8441
uses: actions/upload-artifact@v4
8542
with:
8643
name: Snapshot-${{ matrix.configuration }}
8744
path: bin/${{ matrix.configuration }}
88-
89-
90-
# runs-on: windows-latest # For a list of available runner types, refer to
91-
# # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
92-
93-
# env:
94-
# Solution_Name: src/LogExpert.sln # Replace with your solution name, i.e. MyWpfApp.sln.
95-
# Test_Project_Path: src/LogExpert.Tests/LogExpert.Tests.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
96-
# #Wap_Project_Directory: your-wap-project-directory-name # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package.
97-
# #Wap_Project_Path: your-wap-project-path # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj.
98-
99-
# steps:
100-
# - name: Checkout
101-
# uses: actions/checkout@v4
102-
# with:
103-
# fetch-depth: 0
104-
105-
# # Install the .NET Core workload
106-
# - name: Install .NET Core
107-
# uses: actions/setup-dotnet@v4
108-
# with:
109-
# dotnet-version: 8.0.x
110-
111-
# # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
112-
# - name: Setup MSBuild.exe
113-
# uses: microsoft/setup-msbuild@v2
114-
115-
# # Execute all unit tests in the solution
116-
# - name: Execute unit tests
117-
# run: dotnet test
118-
# working-directory: src
119-
120-
# # Restore the application to populate the obj folder with RuntimeIdentifiers
121-
# - name: Restore the application
122-
# run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
123-
# env:
124-
# Configuration: ${{ matrix.configuration }}
125-
126-
# # Decode the base 64 encoded pfx and save the Signing_Certificate
127-
# - name: Decode the pfx
128-
# run: |
129-
# $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
130-
# $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
131-
# [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
132-
133-
# # Create the app package by building and packaging the Windows Application Packaging project
134-
# #- name: Create the app package
135-
# # run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }}
136-
# # env:
137-
# # Appx_Bundle: Always
138-
# # Appx_Bundle_Platforms: x86|x64
139-
# # Appx_Package_Build_Mode: StoreUpload
140-
# # Configuration: ${{ matrix.configuration }}
141-
142-
# # Remove the pfx
143-
# #- name: Remove the pfx
144-
# # run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx
145-
146-
# # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
147-
# #- name: Upload build artifacts
148-
# # uses: actions/upload-artifact@v4
149-
# # with:
150-
# # name: MSIX Package
151-
# # path: ${{ env.Wap_Project_Directory }}\AppPackages
45+
retention-days: 7

0 commit comments

Comments
 (0)