-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--- The release canary workflow pushes to GitHub Package Registry. --- Type: int Breaking: False Doc Required: False Backport Required: False Part: 1/1
- Loading branch information
Showing
5 changed files
with
68 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Prepare release (canary) | ||
|
||
on: | ||
push: | ||
branches: [ "main", "v0.1.0.x-saas", "v0.1.1.x-saas", "v0.1.2.x-saas" ] | ||
pull_request: | ||
branches: [ "main", "v0.1.0.x-saas", "v0.1.1.x-saas", "v0.1.2.x-saas" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
attestations: write | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
ref: ${{ github.ref }} | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0.x' | ||
- name: Setup DocFX | ||
run: dotnet tool install --global docfx | ||
- name: Release Asset Preparation | ||
run: | | ||
cd tools ; cmd.exe /c "build.cmd Debug -p:ContinuousIntegrationBuild=true" ; cd .. | ||
cd tools ; cmd.exe /c "pack.cmd" ; cd .. | ||
cd tools ; cmd.exe /c "docgen.cmd" ; cd .. | ||
cd tools ; cmd.exe /c "docgen-pack.cmd" ; cd .. | ||
dotnet build -p:Configuration=Debug -p:Platform=x64 public/Nitrocid.Installers/Nitrocid.Installer.sln | ||
dotnet build -p:Configuration=Debug -p:Platform=ARM64 public/Nitrocid.Installers/Nitrocid.Installer.sln | ||
Move-Item public/Nitrocid.Installers/Nitrocid.InstallerBundle/bin/x64/Debug/Nitrocid.InstallerBundle.exe tools/nitrocid-win-x64-installer.exe | ||
Move-Item public/Nitrocid.Installers/Nitrocid.InstallerBundle/bin/ARM64/Debug/Nitrocid.InstallerBundle.exe tools/nitrocid-win-arm64-installer.exe | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: installer-x64-msi | ||
path: "public/Nitrocid.Installers/Nitrocid.InstallerBundle/bin/x64/Release" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: installer-arm64-msi | ||
path: "public/Nitrocid.Installers/Nitrocid.InstallerBundle/bin/ARM64/Release" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: nks-build | ||
path: "public/Nitrocid/KSBuild" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: nks-analyzer | ||
path: "public/Nitrocid/KSAnalyzer" | ||
- name: Package Publication | ||
run: | | ||
dotnet nuget add source --username AptiviCEO --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Aptivi/index.json" | ||
chmod +x tools/*.sh | ||
cd tools ; cmd.exe /C "push.cmd ${{ secrets.GITHUB_TOKEN }} github" ; cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters