-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from DREDGE-Mods/dev
Nuget attempts
- Loading branch information
Showing
4 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package > | ||
<metadata> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
|
||
<version>$version$</version> | ||
|
||
<id>Winch</id> | ||
<title>Winch</title> | ||
<authors>Hacktix, xen-42</authors> | ||
<owners>xen-42</owners> | ||
<description>A Harmony-based mod loader for the game Dredge.</description> | ||
<license type="expression">MIT</license> | ||
</metadata> | ||
<files> | ||
<file src="bin\Winch.dll" target="lib\net48" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
"Name": "Winch", | ||
"Author": "Hacktix", | ||
"ModGUID": "hacktix.winch", | ||
"Version": "alpha-1.4" | ||
"Version": "0.2.1" | ||
} |