Atempent 2
All checks were successful
Spellcheck / Spellcheck (push) Successful in 15s
Tests / Evaluate Tests on ubuntu-latest (push) Successful in 1m2s

This commit is contained in:
2026-06-10 16:44:40 -04:00
parent ceb4b81b36
commit 157a4d38b1
2 changed files with 21 additions and 19 deletions

View File

@@ -65,14 +65,16 @@ jobs:
# Use the .NET SDK from global.json in the root of the repository. # Use the .NET SDK from global.json in the root of the repository.
global-json-file: global.json global-json-file: global.json
# Write version to file so .NET will build correct version. # Write version to file so .NET will build correct version.
# - name: Write Version to File
# uses: jacobtomlinson/gha-find-replace@v3
# with:
# find: "0.0.0-devbuild"
# replace: ${{ steps.next-version.outputs.version }}
# regex: false
# include: GodotHelper/GodotHelper.csproj
- name: Write Version to File - name: Write Version to File
uses: jacobtomlinson/gha-find-replace@v3 run: |
with: sed -i 's/0.0.0-devbuild/${{ steps.next-version.outputs.version }}/g' GodotHelper/GodotHelper.csproj
find: "0.0.0-devbuild"
replace: ${{ steps.next-version.outputs.version }}
regex: false
include: GodotHelper/GodotHelper.csproj
- name: Build - name: Build
working-directory: GodotHelper working-directory: GodotHelper
run: dotnet build -c Release run: dotnet build -c Release
@@ -85,18 +87,18 @@ jobs:
echo "Found package: $package" echo "Found package: $package"
echo "${{ steps.package-path.outputs.package }}" echo "${{ steps.package-path.outputs.package }}"
- name: Create Release # - name: Create Release
run: | # run: |
version="${{ steps.next-version.outputs.version }}" # version="${{ steps.next-version.outputs.version }}"
curl -X POST "http://192.168.1.4:3000/api/packages/Ronnie/GodotHelpers/releases" \ # curl -X POST "http://192.168.1.4:3000/api/packages/Ronnie/GodotHelpers/releases" \
-H "Authorization: token ${{ secrets.GH_BASIC }}" \ # -H "Authorization: token ${{ secrets.GH_BASIC }}" \
-H "Content-Type: application/json" \ # -H "Content-Type: application/json" \
-d "{ # -d "{
\"tag_name\": \"$version\", # \"tag_name\": \"$version\",
\"name\": \"v$version\", # \"name\": \"v$version\",
\"body\": \"Auto release $version\" # \"body\": \"Auto release $version\"
}" # }"
- name: Publish to Nuget - name: Publish to Nuget
run: | run: |
dotnet nuget push "${{ steps.package-path.outputs.package }}" \ dotnet nuget push "${{ steps.package-path.outputs.package }}" \

View File

@@ -13,7 +13,7 @@
<DebugType>portable</DebugType> <DebugType>portable</DebugType>
<Title>GodotHelper</Title> <Title>GodotHelper</Title>
<Version>0.0.1</Version> <Version>0.0.0-devbuild</Version>
<Description>GodotHelper description.</Description> <Description>GodotHelper description.</Description>
<Copyright>© 2024 Ronnie Kisner</Copyright> <Copyright>© 2024 Ronnie Kisner</Copyright>
<Authors>Ronnie Kisner</Authors> <Authors>Ronnie Kisner</Authors>