Skip to content

chsarpier in command line #14

chsarpier in command line

chsarpier in command line #14

Workflow file for this run

$schema: https://json.schemastore.org/github-workflow.json

Check failure on line 1 in .github/workflows/action.yml

View workflow run for this annotation

GitHub Actions / dotnet package

Invalid workflow file

The workflow is not valid. .github/workflows/action.yml (Line: 1, Col: 1): Unexpected value '$schema'
name: dotnet package
on: [push]
jobs:
check_formatting:
runs-on: ubuntu-latest
name: Check Formatting
steps:
- uses: actions/checkout@v2
- run: |
dotnet tool restore
dotnet csharpier --check .
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
working-directory: AutomaticInterface
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: AutomaticInterface
- name: Test
run: dotnet test --no-restore --verbosity normal
working-directory: AutomaticInterface
- name: Nuget
if: startsWith(github.ref, 'refs/heads/master')
run: nuget push **\release\**\AutomaticInterface.*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}