Skip to content

Release 1.3.2

Release 1.3.2 #12

Workflow file for this run

run-name: Release ${{ inputs.VERSION }}
name: Release
permissions:
contents: write
on:
workflow_dispatch:
inputs:
VERSION:
description: 배포 버전 (ex. 1.0.0)
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Test
working-directory: src/System.CommandLine.SourceGenerator.Tests
run: dotnet test
- name: Pack
working-directory: src
run: dotnet pack --nologo -c Release -o ../Artifacts -p:Version=${{ inputs.VERSION }}
- name: Push to NuGet
working-directory: Artifacts
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
- name: GitHub Tag & Release
uses: avakar/tag-and-release@v1
with:
release_name: Release ${{ inputs.VERSION }}
tag_name: v${{ inputs.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}