Skip to content

Commit

Permalink
Update release_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xen-42 authored Oct 10, 2023
1 parent c45c6cb commit 96c3fca
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
Update_Release:
name: 'Create/Update Release Asset'
needs: Build
outputs:
version: ${{ steps.version.outputs.prop }}
if: ${{ github.ref != 'refs/heads/master' && contains(github.event.pull_request.labels.*.name, 'update-pr') }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -69,3 +71,27 @@ jobs:
artifacts: Winch.zip, DisasterButton.zip, ExampleItems.zip, IntroSkipper.zip
draft: true
prerelease: false
Pack_Nuget:
name: Pack nuget
needs: Update_Release
runs-on: windows-latest
steps:
- name: Download Winch Asset
uses: actions/download-artifact@v3
with:
name: Winch
path: Winch
- name: Get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: Winch\mod_meta.json
prop_path: Version
- name: Set up nuget
uses: NuGet/[email protected]
- name: Pack nuget
run: nuget pack package -OutputFileNamesWithoutVersion -OutputDirectory build -Properties "version=${{ steps.version.outputs.prop }};"
- name: Publish nuget
run: |
nuget push "build/Winch.nupkg" -ApiKey ${{ secrets.NUGET_KEY }} -Source https://api.nuget.org/v3/index.json

0 comments on commit 96c3fca

Please sign in to comment.