20 Commits
Author SHA1 Message Date
qwsdcvghyu89 c4ad861621 Fixed cleanup step
Nightly Build and Release / Build and Release Nightly (push) Successful in 31s
2026-06-05 03:52:47 +10:00
qwsdcvghyu89 66d0819632 Fixed clean up step
Nightly Build and Release / Build and Release Nightly (push) Failing after 1m25s
2026-06-05 03:47:01 +10:00
qwsdcvghyu89 66ea0f90b6 Added nightly clean up routine
Nightly Build and Release / Build and Release Nightly (push) Failing after 27s
2026-06-05 03:43:34 +10:00
qwsdcvghyu89 e11ac2fdde Optimized build sizes by culling unnecessary data
Nightly Build and Release / Build and Release Nightly (push) Failing after 29s
2026-06-05 03:36:42 +10:00
qwsdcvghyu89 ca626310df Fixed semver generation
Nightly Build and Release / Build and Release Nightly (push) Successful in 30s
2026-06-05 01:16:57 +10:00
qwsdcvghyu89 ece48eb79b Fixed targeting in actions
Nightly Build and Release / Build and Release Nightly (push) Successful in 30s
2026-06-05 01:10:53 +10:00
qwsdcvghyu89 c573639d96 Fixed PublishAll.targets
Nightly Build and Release / Build and Release Nightly (push) Successful in 15s
2026-06-05 01:09:53 +10:00
qwsdcvghyu89 02a65a6ce0 Fixed dotnet nuget add to work in non-idempotent environments
Nightly Build and Release / Build and Release Nightly (push) Failing after 11s
2026-06-05 01:06:32 +10:00
qwsdcvghyu89 2490fb260d Fixed destination logic; updated action to use .net11 preview 4; fixed broken .csproj.
Nightly Build and Release / Build and Release Nightly (push) Failing after 14s
2026-06-05 01:03:48 +10:00
qwsdcvghyu89 c4d573a69e Added gitea packages recognition. 2026-06-05 00:57:38 +10:00
qwsdcvghyu89 3fb20e57d1 Switched to using setup-dotnet instead of containers 2026-06-05 00:33:58 +10:00
qwsdcvghyu89 59b623c170 Reverted to use node (actions runner now has node available) 2026-06-05 00:30:11 +10:00
qwsdcvghyu89 b52ae3ce03 Fixed clone command again 2026-06-05 00:22:31 +10:00
qwsdcvghyu89 c7ec07cef2 Fixed clone command to use gitea 2026-06-05 00:20:08 +10:00
qwsdcvghyu89 f41e83765a Added custom container to checkout step. 2026-06-05 00:16:55 +10:00
qwsdcvghyu89 2e943882ec Updated container use semantics order to allow checkout to work 2026-06-05 00:13:40 +10:00
qwsdcvghyu89 e11c689602 Updated runs-on to run only on 'Debian-x86' with a capital D
Nightly Build and Release / Build and Release Nightly (push) Failing after 33s
2026-06-05 00:11:11 +10:00
qwsdcvghyu89 320fee57b2 Updated runs-on to match upper and lowercase
Nightly Build and Release / Build and Release Nightly (push) Canceled after 0s
2026-06-05 00:08:42 +10:00
qwsdcvghyu89 2b848baa33 Fixed branch filtering
Nightly Build and Release / Build and Release Nightly (push) Canceled after 0s
2026-06-05 00:04:27 +10:00
qwsdcvghyu89 9065d614e1 Added manual run button for action 'Nightly Build and Release' 2026-06-05 00:03:29 +10:00
4 changed files with 40 additions and 14 deletions
+33 -11
View File
@@ -3,37 +3,59 @@ name: Nightly Build and Release
on:
push:
branches:
- main
- master
workflow_dispatch:
jobs:
build-releases:
name: 'Build and Release Nightly'
runs-on: debian-x86
runs-on: Debian-x86
permissions:
contents: write # Ensures the GITHUB_TOKEN has permission to create/update releases
container:
image: mcr.microsoft.com/dotnet/sdk:9.0
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
# 1. Run your custom MSBuild target
- name: 'Execute .NET Publish Target'
run: dotnet build aeqw89.tools.Publish/aeqw89.tools.Publish.csproj -t:PublishAll
- name: Setup .NET 11.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '11.0.100-preview.4.26230.115'
# Authenticate with your private Gitea NuGet registry
- name: Add Gitea NuGet Source
run: |
dotnet nuget remove source "GiteaRegistry" || true
dotnet nuget add source "https://git.main.qwsdcvghyu.com/api/packages/riley/nuget/index.json" --name "GiteaRegistry" --username "riley" --password "${{ secrets.PACKAGES_KEY }}" --store-password-in-clear-text
- name: 'Execute .NET Publish Target'
run: dotnet build aeqw89.tools.Publish/aeqw89.tools.Publish.csproj -p:ArchiveVersion=nightly -t:Archive
# 1. Clean the release database and forcefully advance the tag
- name: Clean up Release & Update Tag
run: |
# Find and delete the old Gitea Release payload via API
RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" ${{ github.api_url }}/repos/${{ github.repository }}/releases/tags/nightly | jq -r '.id')
if [ "$RELEASE_ID" != "null" ] && [ -n "$RELEASE_ID" ]; then
echo "Deleting old release ID: $RELEASE_ID"
curl -s -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" ${{ github.api_url }}/repos/${{ github.repository }}/releases/$RELEASE_ID
fi
# Force the 'nightly' Git tag to point to this new commit and push it
git tag -f nightly ${{ github.sha }}
git push -f origin nightly
# 2. Upload all generated archives to the 'nightly' release
- name: Update Nightly Release
uses: softprops/action-gh-release@v2
with:
tag_name: nightly
target_commitish: ${{ github.sha }}
name: "Nightly Development Build"
body: |
Automated rolling nightly build from the latest commit on `main`.
**Commit:** ${{ github.sha }}
prerelease: true
# This glob pattern grabs every zip and tar.gz inside your dist folder
files: |
aeqw89.tools.Publish/dist/*.zip
aeqw89.tools.Publish/dist/*.tar.gz
+1 -1
View File
@@ -146,7 +146,7 @@ sealed record GitDestination(DestinationContext Context, string Source, string A
// gitea source structure = https://gitea.example.com/api/packages/{owner}/nuget/index.json
var keyResult = GetApiKey("gitea");
if (keyResult is ReadableError error) return error;
return new GitDestination(context, $"https://gitea.example.com/api/packages/{repoOwner}/nuget/index.json", keyResult.Unwrap(), verbose).Ok();
return new GitDestination(context, $"https://git.main.qwsdcvghyu.com/api/packages/{repoOwner}/nuget/index.json", keyResult.Unwrap(), verbose).Ok();
}
public static Result<GitDestination, ReadableError> CreateForGithub(DestinationContext context, string repoOwner, bool verbose = false) {
+5 -1
View File
@@ -15,10 +15,14 @@
BuildInParallel="true"
Properties="Configuration=Release;
Platform=Any CPU;
TargetFramework=net9.0;
TargetFramework=net11.0;
RuntimeIdentifier=%(Rid.Identity);
SelfContained=true;
PublishSingleFile=true;
PublishTrimmed=true;
InvariantGlobalization=true;
EnableCompressionInSingleFile=true;
DebugSymbols=false;
PublishDir=bin\Release\publish\%(Rid.Identity)\" />
</Target>
@@ -7,7 +7,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>