Merge pull request #2329 from tiksn/dependabot/nuget/Microsoft.Extens… #1348
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: CICD | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
permissions: read-all | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
jobs: | |
ci: | |
name: CI | |
runs-on: windows-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
fetch-depth: 0 | |
- name: "Install .NET Core SDK" | |
uses: actions/[email protected] | |
- name: Install .NET MAUI | |
run: dotnet workload install maui | |
- name: "Install InvokeBuild Module" | |
shell: pwsh | |
run: Install-Module -Name InvokeBuild -Force | |
- name: "Restore" | |
shell: pwsh | |
run: .\restore.ps1 -Instance ${{github.run_id}} | |
- name: "Format" | |
shell: pwsh | |
run: .\format.ps1 -Instance ${{github.run_id}} | |
- name: "Version" | |
shell: pwsh | |
run: .\version.ps1 -Instance ${{github.run_id}} | |
- name: "Build" | |
shell: pwsh | |
run: .\build.ps1 -Instance ${{github.run_id}} | |
- name: "Test" | |
shell: pwsh | |
run: .\test.ps1 -Instance ${{github.run_id}} | |
- name: "Pack" | |
shell: pwsh | |
run: .\pack.ps1 -Instance ${{github.run_id}} | |
- name: "Publish Artefacts" | |
uses: actions/[email protected] | |
with: | |
name: .trash | |
path: ".trash" | |
include-hidden-files: true | |
cd: | |
name: CD | |
needs: ci | |
if: github.event_name == 'release' | |
environment: | |
name: "NuGet" | |
url: https://www.nuget.org/packages/TIKSN-Framework/ | |
runs-on: windows-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
fetch-depth: 0 | |
- name: "Download Artefact" | |
uses: actions/[email protected] | |
with: | |
name: .trash | |
path: ".trash" | |
- name: "Install InvokeBuild Module" | |
shell: pwsh | |
run: Install-Module -Name InvokeBuild -Force | |
- name: "Publish" | |
env: | |
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} | |
shell: pwsh | |
run: .\publish.ps1 -Instance ${{github.run_id}} |