Skip to content

Updates

Updates #40

Workflow file for this run

name: CI
on:
push:
branches: [ '*' ]
pull_request:
jobs:
CI:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Needed in order for tags to be available so prereleases autoincrement the version
- name: Build and test
run: ./build.ps1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Publish to MyGet
if: github.ref == 'refs/heads/main'
run: dotnet nuget push artifacts\Packages\AmbientTasks.*.nupkg --source https://www.myget.org/F/ambienttasks/api/v3/index.json --api-key ${{ secrets.MYGET_API_KEY }}
- name: Upload packages artifact
if: always()
uses: actions/upload-artifact@v2
with:
name: Packages
path: artifacts/Packages
- name: Upload test results artifact
if: always()
uses: actions/upload-artifact@v2
with:
name: Test results
path: artifacts/Test results
- name: Upload logs artifact
if: always()
uses: actions/upload-artifact@v2
with:
name: Logs
path: artifacts/Logs