Manula wirte file tag
This commit is contained in:
23
.github/workflows/release.yaml
vendored
23
.github/workflows/release.yaml
vendored
@@ -33,13 +33,13 @@ jobs:
|
|||||||
DOTNET_NOLOGO: true
|
DOTNET_NOLOGO: true
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_BASIC }}
|
token: ${{ secrets.GH_BASIC }}
|
||||||
lfs: true
|
lfs: true
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 0 # So we can get all tags.
|
fetch-depth: 0 # So we can get all tags.
|
||||||
fetch-tags: true
|
# fetch-tags: true
|
||||||
|
|
||||||
- name: Read Current Project Version
|
- name: Read Current Project Version
|
||||||
id: current-version
|
id: current-version
|
||||||
@@ -66,12 +66,15 @@ jobs:
|
|||||||
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
|
- 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' \
|
||||||
find: "0.0.0-devbuild"
|
GodotHelper/GodotHelper.csproj
|
||||||
replace: ${{ steps.next-version.outputs.version }}
|
# uses: jacobtomlinson/gha-find-replace@v3
|
||||||
regex: false
|
# with:
|
||||||
include: 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
|
||||||
@@ -89,7 +92,7 @@ jobs:
|
|||||||
# 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 "https://gitea.superjrking.com/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 "{
|
||||||
@@ -100,7 +103,7 @@ jobs:
|
|||||||
- 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 }}" \
|
||||||
--source "http://192.168.1.4:3000/api/packages/Ronnie/nuget/index.json" \
|
--source "https://gitea.superjrking.com/api/packages/Ronnie/nuget/index.json" \
|
||||||
--allow-insecure-connections \
|
--allow-insecure-connections \
|
||||||
--api-key "${{ secrets.NUGET_KEY }}" \
|
--api-key "${{ secrets.NUGET_KEY }}" \
|
||||||
--skip-duplicate
|
--skip-duplicate
|
||||||
|
|||||||
Reference in New Issue
Block a user