Skip to content

Merge pull request #8 from ILoyd/master #21

Merge pull request #8 from ILoyd/master

Merge pull request #8 from ILoyd/master #21

name: AutSoftCore CD
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: '5.x'
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0.9.14
with:
useConfigFile: true
configFilePath: pipelines/GitVersion.yml
- name: Restore dependencies
run: dotnet restore
# Reason for this build: https://github.com/microsoft/TypeScript/issues/42907
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Pack
run: dotnet pack --no-restore --configuration Release --output artifacts
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
path: "**/*.nupkg"
- name: Push
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json