Skip to content

Commit

Permalink
Update to match nuget
Browse files Browse the repository at this point in the history
0.2.2
  • Loading branch information
xen-42 authored Oct 10, 2023
2 parents 9686910 + 53aad93 commit c6ade6c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ jobs:
zip -r $mod.zip *
mv $mod.zip ../..
cd ../..
done
done
- name: Upload Asset
uses: ncipollo/release-action@v1
with:
Expand All @@ -76,22 +75,24 @@ jobs:
needs: Update_Release
runs-on: windows-latest
steps:
- name: Download Winch Asset
uses: actions/download-artifact@v3
with:
name: Winch
path: Winch
- name: Checkout
uses: actions/checkout@v3
- name: Get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: Winch\mod_meta.json
path: Winch/mod_meta.json
prop_path: Version
- name: Set up nuget
uses: NuGet/[email protected]
- name: Download Winch Asset
uses: actions/download-artifact@v3
with:
name: Winch
path: Winch/bin
- name: Pack nuget
run: nuget pack package -OutputFileNamesWithoutVersion -OutputDirectory build -Properties "version=${{ steps.version.outputs.prop }};"
run: nuget pack Winch/Winch.nuspec -Properties "version=${{ steps.version.outputs.prop }}"
- run: dir
- name: Publish nuget
run: |
nuget push "build/Winch.nupkg" -ApiKey ${{ secrets.NUGET_KEY }} -Source https://api.nuget.org/v3/index.json
run: nuget push "Winch.*.nupkg" -ApiKey ${{ secrets.NUGET_KEY }} -Source https://api.nuget.org/v3/index.json

2 changes: 1 addition & 1 deletion Winch/mod_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"Name": "Winch",
"Author": "Hacktix",
"ModGUID": "hacktix.winch",
"Version": "0.2.1"
"Version": "0.2.2"
}

0 comments on commit c6ade6c

Please sign in to comment.