Skip to content

v1.0.2

v1.0.2 #16

Workflow file for this run

name: Release
on:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish
run: >
export VERSION=$(git describe --abbrev=0 --tags --match "v*" | cut -c 2-);
dotnet pack src/DotNetTool/DotNetTool.csproj --configuration Release --output ./out -p:Version=$VERSION;
dotnet nuget push ./out/*.$VERSION.nupkg --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key "${{ secrets.GITHUB_TOKEN }}";
- name: Upload output artifacts
uses: actions/upload-artifact@v2
with:
name: packages
path: ./out/*