Cleanup and validation fix. #729
Workflow file for this run
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: Build and Push to Nuget | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' | |
- name: install mjml | |
run: | | |
npm i mjml -g | |
- name: test | |
run: | | |
dotnet test --filter Category!=Dependencies | |
- name: pack | |
run: | | |
cd Mjml.Net & dotnet pack -c Release | |
- name: publish | |
if: github.event_name != 'pull_request' && github.ref_name == 'main' | |
run: | | |
dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' --skip-duplicate -k ${{ secrets.nuget }} |