Skip to content

Commit

Permalink
trying to add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-scott-78 committed Apr 9, 2022
1 parent d7f6e1a commit f768e23
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci

on:
push:
paths-ignore:
- 'changelog.md'
- 'license.md'
- 'readme.md'
branches: [main]

jobs:
build:
runs-on: ubuntu-18.04

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Build and Test (Debug)
run: dotnet test -c Debug

- name: Self Build - Publish (main only)
shell: bash
run: |
dotnet tool install --global dotnet-releaser
dotnet-releaser publish --force --nuget-token ${{secrets.NUGET_TOKEN}} --github-token ${{secrets.GITHUB_TOKEN}} dotnet-releaser.toml

0 comments on commit f768e23

Please sign in to comment.