Atempent 2
This commit is contained in:
38
.github/workflows/release.yaml
vendored
38
.github/workflows/release.yaml
vendored
@@ -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 }}" \
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user