This commit is contained in:
Louis Lam 2026-01-13 11:19:42 +08:00
parent 744354a5d2
commit 680bcc6b71
4 changed files with 10 additions and 8 deletions

View File

@ -82,5 +82,5 @@ jobs:
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: dist-${{ inputs.version }}
path: dist.tar.gz
path: ./tmp/dist.tar.gz
retention-days: 90

View File

@ -10,7 +10,7 @@ const mergeList = ["Translations Update from Weblate", "Update dependencies"];
const template = `
LLM Task: Please help to put above PRs into the following sections based on their content. If a PR fits multiple sections, choose the most relevant one. If a PR doesn't fit any section, place it in "Others". If there are grammatical errors in the PR titles, please correct them. Don't change the PR numbers and authors, and keep the format. Output as markdown.
LLM Task: Please help to put above PRs into the following sections based on their content. If a PR fits multiple sections, choose the most relevant one. If a PR doesn't fit any section, place it in "Others". If there are grammatical errors in the PR titles, please correct them. Don't change the PR numbers and authors, and keep the format. Output as markdown file format.
Changelog:

View File

@ -48,12 +48,12 @@ await checkTagExists(repoNames, version);
// node extra/beta/update-version.js
execSync("node ./extra/beta/update-version.js");
// Build frontend dist
buildDist();
// Create Pull Request
await createReleasePR(version, previousVersion, dryRun);
// Build frontend dist
buildDist();
if (!dryRun) {
// Build slim image (rootless)
buildImage(

View File

@ -266,7 +266,7 @@ export function checkReleaseBranch() {
*/
export async function createDistTarGz() {
const distPath = "dist";
const outputPath = "dist.tar.gz";
const outputPath = "./tmp/dist.tar.gz";
// Check if dist directory exists
if (!fs.existsSync(distPath)) {
@ -302,13 +302,15 @@ export async function createReleasePR(version, previousVersion, dryRun) {
const changelog = await generateChangelog(previousVersion);
const title = dryRun ? `[DRY RUN] Update to ${version}` : `Update to ${version}`;
const body = `## Beta Release ${version}
const body = `## Release ${version}
This PR prepares the beta release for version ${version}.
This PR prepares the release for version ${version}.
### Changelog
\`\`\`md
${changelog}
\`\`\`
### Release Artifacts