Update README.md #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/CT/CD | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '3.1.x' | |
- name: Copy README to project directory | |
run: cp README.md Chunk\ List/ | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Run Unit Tests | |
run: dotnet test --no-restore --verbosity normal | |
- name: Pack | |
run: dotnet pack --configuration Release --no-build -o out Chunk\ List/Chunk\ List.csproj | |
# run: dotnet pack --configuration Release --no-build -o out | |
- name: Push to NuGet | |
run: dotnet nuget push out/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate |