Skip to content

Update LICENSE

Update LICENSE #34

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.x.x
- name: Calculate Version Parameters
id: version
run: |
build=${{github.run_number}}
template=`cat ./VERSION`
shortsha=$(git rev-parse --short ${{ github.sha }})
echo "template=$template" >> $GITHUB_OUTPUT
echo "template=$template"
echo "shortsha=$shortsha" >> $GITHUB_OUTPUT
echo "shortsha=$shortsha"
echo "semver=${template//build/$build}+sha.$shortsha" >> $GITHUB_OUTPUT
echo "semver=${template//build/$build}+sha.$shortsha"
- name: Package Templates
working-directory: ./src
run: dotnet pack --configuration Release /p:PackageVersion=${{steps.version.outputs.semver}}
- name: Publish Templates
if: github.event_name == 'push'
working-directory: ./src
run: dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate