Skip to content

Instantly share code, notes, and snippets.

@ethomson
Last active January 3, 2020 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethomson/5101813150c57362ee072ee696d60be7 to your computer and use it in GitHub Desktop.
Save ethomson/5101813150c57362ee072ee696d60be7 to your computer and use it in GitHub Desktop.
name: CI
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
name: 'Checkout'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.0.100-preview3-010431'
name: 'Setup .NET Core 3'
- run: |
dotnet restore
dotnet build --no-restore --configuration Release
dotnet test Tests.csproj --no-build --configuration Release
mkdir ${{ github.workspace }}/package
dotnet pack --no-build -c Release --output "${{ github.workspace }}/package"
- uses: actions/upload-artifact@v1
with:
name: nuget
path: ${{ github.workspace }}/package
name: 'Upload Package'
@edbighead
Copy link

Hey @ethomson, 'Upload Package' will never be executed because there is no matrix.os defined in this script. Am i right ?

@ethomson
Copy link
Author

ethomson commented Jan 3, 2020

Oops, thanks @edbighead! Appreciate you letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment