Merge pull request #1072 from jithu7432/uploadv4 #7
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup dotnet 6.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Setup dotnet 8.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.100' | |
- name: Build and Test | |
run: ./Build.ps1 | |
shell: pwsh | |
- name: Push to MyGet | |
env: | |
NUGET_URL: https://www.myget.org/F/mediatr-ci/api/v3/index.json | |
NUGET_API_KEY: ${{ secrets.MYGET_MEDIATR_CI_API_KEY }} | |
run: ./Push.ps1 | |
shell: pwsh | |
- name: Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts | |
path: artifacts/**/* |