Skip to content

Commit

Permalink
Add publish nuget packages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Jul 20, 2023
1 parent ada30fe commit 0ee678b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-nuget-packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish NuGet Packages

on:
push:
tags:
- 'v*'

jobs:
get-version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-version.outputs.version }}

steps:
- name: Get version
id: get-version
shell: pwsh
run: |
$version = [System.Version]::Parse("${{ github.ref_name }}".Replace('v', '')).ToString()
echo "version=$version" >> $env:GITHUB_OUTPUT
echo $version
publish:
needs: get-version
uses: Nexus-Mods/NexusMods.App.Meta/.github/workflows/publish-nuget-packages.yaml@7153945b739384233c7b3ba188b55201514a6fa8
with:
version: ${{ needs.get-version.outputs.version }}
use-nuget: true
use-github: false
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_KEY }}

0 comments on commit 0ee678b

Please sign in to comment.