Skip to content

Merge pull request #10 from richardgergely/feature/state-machine-time… #24

Merge pull request #10 from richardgergely/feature/state-machine-time…

Merge pull request #10 from richardgergely/feature/state-machine-time… #24

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/[email protected]
with:
versionSpec: '5.x'
- name: Determine Version
uses: gittools/actions/gitversion/[email protected]
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/[email protected]
with:
path: "**/*.nupkg"
- name: Push
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json