Skip to content

💄 Remove Hona's Branding (#82) #25

💄 Remove Hona's Branding (#82)

💄 Remove Hona's Branding (#82) #25

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@v4
- uses: nuget/setup-nuget@v2
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: //*[local-name()='version']
- name: Create git tag
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git tag -m "CI: create new tag" ${{ steps.package_version.outputs.version }}
git push https://${{ github.token }}@github.com/SSWConsulting/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 }}