Production #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Production | |
on: [workflow_dispatch] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Release] | |
runs-on: windows-latest # For a list of available runner types, refer to | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build .NET Standard 2.1 | |
run: dotnet build -c Release -f netstandard2.1 | |
- name: Build .NET Framework 4.7.2 | |
run: dotnet build -c Release -f net472 | |
- name: Release | |
run: | | |
Install-Module Microsoft.PowerShell.PSResourceGet -Scope CurrentUser -Force | |
Publish-PSResource -Path .\bin\Release -ApiKey $Env:APIKEY | |
env: | |
APIKEY: ${{ secrets.APIKEY }} | |
shell: pwsh |