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.
|
||||
global-json-file: global.json
|
||||
# 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
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "0.0.0-devbuild"
|
||||
replace: ${{ steps.next-version.outputs.version }}
|
||||
regex: false
|
||||
include: GodotHelper/GodotHelper.csproj
|
||||
|
||||
run: |
|
||||
sed -i 's/0.0.0-devbuild/${{ steps.next-version.outputs.version }}/g' GodotHelper/GodotHelper.csproj
|
||||
- name: Build
|
||||
working-directory: GodotHelper
|
||||
run: dotnet build -c Release
|
||||
@@ -85,18 +87,18 @@ jobs:
|
||||
echo "Found package: $package"
|
||||
echo "${{ steps.package-path.outputs.package }}"
|
||||
|
||||
- name: Create Release
|
||||
run: |
|
||||
version="${{ steps.next-version.outputs.version }}"
|
||||
# - name: Create Release
|
||||
# run: |
|
||||
# version="${{ steps.next-version.outputs.version }}"
|
||||
|
||||
curl -X POST "http://192.168.1.4:3000/api/packages/Ronnie/GodotHelpers/releases" \
|
||||
-H "Authorization: token ${{ secrets.GH_BASIC }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"tag_name\": \"$version\",
|
||||
\"name\": \"v$version\",
|
||||
\"body\": \"Auto release $version\"
|
||||
}"
|
||||
# curl -X POST "http://192.168.1.4:3000/api/packages/Ronnie/GodotHelpers/releases" \
|
||||
# -H "Authorization: token ${{ secrets.GH_BASIC }}" \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d "{
|
||||
# \"tag_name\": \"$version\",
|
||||
# \"name\": \"v$version\",
|
||||
# \"body\": \"Auto release $version\"
|
||||
# }"
|
||||
- name: Publish to Nuget
|
||||
run: |
|
||||
dotnet nuget push "${{ steps.package-path.outputs.package }}" \
|
||||
|
||||
Reference in New Issue
Block a user