Skip to content

Commit 2141c01

Browse files
committed
website: re-generate commons
1 parent 4d6dc00 commit 2141c01

File tree

2 files changed

+40
-22
lines changed

2 files changed

+40
-22
lines changed

website/blog/_templates/blog-post-release-part-1-liquid.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: xPack {{packageConfig.longName}} v{{releaseVersion}} released
3-
seo_title: Version {{releaseVersion}} released
4-
description: Version {{releaseVersion}} is a TODO new/maintenance release.
2+
title: xPack {{packageConfig.longName}} v{{xpackVersion}} released
3+
seo_title: Version {{xpackVersion}} released
4+
description: Version {{xpackVersion}} is a TODO new/maintenance release.
55
keywords:
66
- xpack
77
- {{packageConfig.shortName}}
@@ -24,7 +24,7 @@ mingw_version: "{{packageWebsiteConfig.mingwVersion}}"
2424
version: "{{xpackVersion}}"
2525
npm_subversion: "1"
2626

27-
download_url: https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/tag/v{{releaseVersion}}/
27+
download_url: https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/tag/v{{xpackVersion}}/
2828

2929
---
3030

@@ -119,7 +119,7 @@ Compared to the upstream, there are no functional changes.
119119
## Known problems
120120

121121
Please see the separate
122-
[tests results page](/docs/tests/{{releaseVersion}}/).
122+
[tests results page](/docs/tests/{{xpackVersion}}/).
123123

124124
## Documentation
125125

website/docs/maintainer/_common/_content.mdx

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ or run the following in a terminal:
170170
```
171171

172172
Navigate to the **Maintainer Info** page,
173-
the **Increase the version and update VERSION** section.
173+
the **Update the version specific code** section.
174174

175175
<UpdateVersionSpecific/>
176176

@@ -373,7 +373,7 @@ caffeinate ssh xbbla32
373373

374374
### Update the durations of the development builds
375375

376-
In `website/docs/maintainer/_shared/_development-durations.mdx`, update
376+
In `website/docs/_shared/_development-durations.mdx`, update
377377
the durations of the builds.
378378

379379
Commit with the message _**website: update development durations**_.
@@ -443,7 +443,9 @@ The automation is provided by GitHub Actions and three self-hosted runners.
443443
### Start the self-hosted runners
444444

445445
If the runners expired (more than 2 weeks since last use), run the
446-
`github-runner-configure.sh` script to reconfigure them
446+
`github-runner-configure.sh` script to reconfigure them. This scripts
447+
is available in the `xbb-helper` and
448+
requires `GITHUB_API_XPACK_DEV_TOOLS_RUNNERS_TOKEN` to be present.
447449

448450
- on the development machine (`wksi`) open
449451
ssh sessions to the build machines (`xbbli`, `xbbmi`, `xbbma`, `xbbla`, `xbbla32`):
@@ -472,7 +474,21 @@ For `xbbli` & `xbbla`, which have more memory, start two runners:
472474
~/actions-runners/xpack-dev-tools/2/run.sh &
473475
```
474476

475-
On all other machines start a single runner:
477+
For the macOS x64 runners, be sure the deployment target is defined:
478+
479+
```sh
480+
unset WORK_FOLDER_PATH
481+
export XBB_ENVIRONMENT_MACOSX_DEPLOYMENT_TARGET="10.13"
482+
~/actions-runners/xpack-dev-tools/run.sh &
483+
```
484+
485+
```sh
486+
unset WORK_FOLDER_PATH
487+
export XBB_ENVIRONMENT_MACOSX_DEPLOYMENT_TARGET="11.0"
488+
~/actions-runners/xpack-dev-tools/run.sh &
489+
```
490+
491+
On all other machines start the runner with:
476492

477493
```sh
478494
~/actions-runners/xpack-dev-tools/run.sh &
@@ -498,14 +514,23 @@ The status of all self-hosted runners is available at the [GitHub Runners](https
498514

499515
Publish a new release of the helper on **npmjs**.
500516

501-
### In `npm-packages-helper.git`, update the dependency to the new helper
517+
### In the npm packages helper, update the dependency to the new helper
502518

503519
In `templates/_xpack-dev-tools/build-assets/package-merge-liquid.json`, update the reference
504-
to `"@@xpack-dev-tools/xbb-helper":`.
520+
to `"@xpack-dev-tools/xbb-helper":`.
505521

506-
### Commit the changes to `build-assets/package.json`
522+
### Generate the top commons
507523

508-
Commit with the message _**template: build-assets/package-merge-liquid.json: bump deps**_.
524+
Run the top **generate-top-commons** npm script to update the
525+
`build-assets/package.json` and the GitHub workflow files.
526+
527+
```sh
528+
npm run generate-top-commons -C ~/Work/xpack-dev-tools/mingw-w64-gcc-xpack.git
529+
```
530+
531+
### Commit the changes
532+
533+
Commit with the message _**re-generate top commons**_.
509534

510535
### Check for disk space
511536

@@ -550,15 +575,6 @@ This is equivalent to running a wide `rm` to remove the `build` folders:
550575
rm -rf ~/Work/xpack-dev-tools/*/build-assets/build
551576
```
552577

553-
### Generate the GitHub workflows
554-
555-
Run the top **generate-top-commons** npm script to update the
556-
GitHub workflow files.
557-
558-
```sh
559-
npm run generate-workflows -C ~/Work/xpack-dev-tools/mingw-w64-gcc-xpack.git
560-
```
561-
562578
### Commit and push
563579

564580
- commit with the message **re-generate workflows**
@@ -861,13 +877,15 @@ npm run build -C website
861877

862878
### Publish the website
863879

880+
- open https://xpack-dev-tools.github.io/mingw-w64-gcc-xpack/docs/maintainer/#publish-the-website in a separate window
864881
- stop the local web server
865882
- select the `website` branch
866883
- merge `xpack-development` into `website`
867884
- push the `website` branch to GitHub
868885
:::info
869886
At this moment an automated GitHub Action will generate and publish the website.
870887
:::
888+
- add a new tag like `web-YYYYMMDD`
871889
- the new release blog post is
872890
in https://xpack-dev-tools.github.io/mingw-w64-gcc-xpack/blog/
873891
- remember the post URL, since it must be used to update the release page

0 commit comments

Comments
 (0)