Compare commits
3 Commits
c5d5a0da61
...
v0.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
| 56670cb0ba | |||
| 14ad27fa99 | |||
| 1e8d33e436 |
23
.github/workflows/release.yaml
vendored
23
.github/workflows/release.yaml
vendored
@@ -33,13 +33,13 @@ jobs:
|
||||
DOTNET_NOLOGO: true
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
token: ${{ secrets.GH_BASIC }}
|
||||
lfs: true
|
||||
submodules: 'recursive'
|
||||
fetch-depth: 0 # So we can get all tags.
|
||||
fetch-tags: true
|
||||
# fetch-tags: true
|
||||
|
||||
- name: Read Current Project Version
|
||||
id: current-version
|
||||
@@ -66,12 +66,15 @@ jobs:
|
||||
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
|
||||
run: |
|
||||
sed -i 's/0\.0\.0-devbuild/${{ steps.next-version.outputs.version }}/g' \
|
||||
GodotHelper/GodotHelper.csproj
|
||||
# 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: Build
|
||||
working-directory: GodotHelper
|
||||
@@ -89,7 +92,7 @@ jobs:
|
||||
# run: |
|
||||
# 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 "Content-Type: application/json" \
|
||||
# -d "{
|
||||
@@ -100,7 +103,7 @@ jobs:
|
||||
- name: Publish to Nuget
|
||||
run: |
|
||||
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 \
|
||||
--api-key "${{ secrets.NUGET_KEY }}" \
|
||||
--skip-duplicate
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||
<!-- <add key="coverlet" value="https://pkgs.dev.azure.com/tonerdo/coverlet/_packaging/coverlet-nightly/nuget/v3/index.json" /> -->
|
||||
<!-- <add key="gitea" value="http://gitea.superjrking.com/api/packages/Ronnie/nuget/index.json" allowInsecureConnections="True" /> -->
|
||||
<add key="coverlet" value="https://pkgs.dev.azure.com/tonerdo/coverlet/_packaging/coverlet-nightly/nuget/v3/index.json" />
|
||||
<add key="gitea" value="https://gitea.superjrking.com/api/packages/Ronnie/nuget/index.json"/>
|
||||
</packageSources>
|
||||
<!-- <packageSourceCredentials>
|
||||
<packageSourceCredentials>
|
||||
<gitea>
|
||||
<add key="Username" value="Ronnie" />
|
||||
<add key="ClearTextPassword" value="e59e39d60f30b539ae594d8cfc7a9771883d2eb0" />
|
||||
</gitea>
|
||||
</packageSourceCredentials> -->
|
||||
</packageSourceCredentials>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user