Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
smokedlinq committed Aug 6, 2021
1 parent 90e9664 commit 3463575
Show file tree
Hide file tree
Showing 14 changed files with 902 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [ main ]
schedule:
- cron: 0 12 * * 1

env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0

- name: Setup .NET Core 5.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: Build
run: dotnet build --configuration Release
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
push:
tags: [ 'v*' ]

env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0

- name: Setup .NET Core 5.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: Build and publish
shell: pwsh
run: |
dotnet build --configuration Release
dotnet pack --configuration Release -p:Version=$($env:GITHUB_REF -replace '^refs/tags/v','') --output ./publish
cd ./publish
dotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push "*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }} --skip-duplicate --no-symbols true --api-key ${{ secrets.GITHUB_TOKEN }}
- name: Create release
uses: actions/create-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
Loading

0 comments on commit 3463575

Please sign in to comment.