Skip to content

Merge pull request #259 from joakimskoog/deploy-workflow #25

Merge pull request #259 from joakimskoog/deploy-workflow

Merge pull request #259 from joakimskoog/deploy-workflow #25

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- master
paths-ignore:
- '*.md'
jobs:
build-job:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Build
run: dotnet build -c Release
- name: Tests
run: dotnet test tests/AnApiOfIceAndFire.Tests/AnApiOfIceAndFire.Tests.csproj -c Release --logger GitHubActions
deploy-job:
name: Deploy
if: github.ref == 'refs/heads/master'
needs: build-job
runs-on: ubuntu-latest
steps:
- name: Publish
run: dotnet publish -c Release