Skip to content

mrrhak is publishing (v1.2.0) 🚀 #22

mrrhak is publishing (v1.2.0) 🚀

mrrhak is publishing (v1.2.0) 🚀 #22

Workflow file for this run

name: NuGet Publish
run-name: ${{ github.actor }} is publishing (${{github.ref_name}}) 🚀
on:
workflow_dispatch:
release:
types: [published]
# push:
# tags:
# - v*.*.**
jobs:
publish-nuget-package:
name: Publish
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Set version
run: |
NEW_VERSION=$(echo "${{github.ref_name}}" | sed "s/^v//")
sed -i s/1.0.0/$NEW_VERSION/g S3FileProvider/S3FileProvider.csproj
- name: Pack
run: |
dotnet pack S3FileProvider -c Release -o publish
- name: Publish
run: |
dotnet nuget push publish/MrrHak.Extensions.FileProviders.S3FileProvider.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}}