Skip to content

📌 0.7.0 Release (#39) #16

📌 0.7.0 Release (#39)

📌 0.7.0 Release (#39) #16

Workflow file for this run

name: Package
on:
push:
branches:
- main
paths:
- 'VerticalSliceArchitecture.nuspec'
workflow_dispatch:
jobs:
publish:
name: Publish to NuGet.org
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: nuget/setup-nuget@v1
with:
nuget-version: '6.x'
- name: Create the package
run: nuget pack VerticalSliceArchitecture.nuspec -NoDefaultExcludes
- name: Publish the package
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
- name: Get version
id: package_version
uses: KageKirin/[email protected]
with:
file: VerticalSliceArchitecture.nuspec
xpath: /package/metadata/version
- name: Create git tag
run: |
git tag -m "CI: create new tag" ${{ steps.package_version.outputs.version }}
git push https://${{ github.token }}@github.com/Hona/VerticalSliceArchitecture
- name: Create release
uses: ncipollo/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: false
prerelease: false
generateReleaseNotes: true
tag: ${{ steps.package_version.outputs.version }}