Skip to content

Commit 3812959

Browse files
committed
Merge branch 'release/2025.3.x'
2 parents 9eb5e9f + 498f0a2 commit 3812959

File tree

3 files changed

+29
-10
lines changed

3 files changed

+29
-10
lines changed

.github/workflows/release-tag.yml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ on:
44
push:
55
tags:
66
- "*"
7+
workflow_dispatch:
8+
inputs:
9+
uploadDiskOnly:
10+
description: |
11+
If enabled, will only re-build and re-upload the release disk, without
12+
creating a new release. Uses the version of PlayOS defined in
13+
application.nix, without verifying that it matches the git tag.
14+
type: boolean
15+
default: false
16+
717

818
permissions:
919
contents: write
@@ -27,11 +37,18 @@ jobs:
2737
2838
- uses: ./.github/actions/prep-build-env
2939

40+
- name: Get version from application.nix
41+
run: |
42+
PLAYOS_VERSION="$(nix eval --raw -f application.nix 'version')"
43+
44+
echo "PLAYOS_VERSION=$PLAYOS_VERSION" >> $GITHUB_ENV
45+
46+
3047
- name: Validate tag
48+
if: ${{ inputs.uploadDiskOnly != true }}
3149
run: |
32-
app_vsn="$(nix eval --raw -f application.nix 'version')"
33-
if [ "$app_vsn" != "$GITHUB_REF_NAME" ]; then
34-
echo "Git tag ($GITHUB_REF_NAME) does not match version in application.nix ($app_vsn), aborting!"
50+
if [ "$PLAYOS_VERSION" != "$GITHUB_REF_NAME" ]; then
51+
echo "Git tag ($GITHUB_REF_NAME) does not match version in application.nix ($PLAYOS_VERSION), aborting!"
3552
exit 1
3653
fi
3754
@@ -46,23 +63,25 @@ jobs:
4663
aws-region: eu-central-1
4764

4865
- name: Publish to S3
49-
run: ./.github/workflows/upload-test-disk.sh "$GITHUB_REF_NAME"
66+
run: ./.github/workflows/upload-test-disk.sh "$PLAYOS_VERSION"
5067

5168
- name: Create Release summary
52-
run: ./.github/workflows/gen-release-summary.sh "$GITHUB_REF_NAME" > ./release-notes.md
69+
if: ${{ inputs.uploadDiskOnly != true }}
70+
run: ./.github/workflows/gen-release-summary.sh "$PLAYOS_VERSION" > ./release-notes.md
5371

5472
- name: Create Release
73+
if: ${{ inputs.uploadDiskOnly != true }}
5574
env:
5675
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5776
run: |
5877
extra_args=""
59-
if [[ "$GITHUB_REF_NAME" == *VALIDATION ]]; then
78+
if [[ "$PLAYOS_VERSION" == *VALIDATION ]]; then
6079
extra_args="--prerelease"
61-
elif [[ "$GITHUB_REF_NAME" == *TEST ]]; then
80+
elif [[ "$PLAYOS_VERSION" == *TEST ]]; then
6281
extra_args="--draft"
6382
fi
6483
6584
gh release create --verify-tag \
6685
-F ./release-notes.md \
6786
$extra_args \
68-
"$GITHUB_REF_NAME"
87+
"$PLAYOS_VERSION"

testing/disk/release.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let
1616
partSizes = {
1717
boot = 525; # 525 MiB (matches install-playos default)
1818
system = 1024 * 9; # 9 GiB (install-playos default - 1GiB)
19-
data = 400; # 400 MiB (same as testing/disk/default.nix)
19+
data = 2000; # 2000 MiB (same as testing/disk/default.nix)
2020
};
2121
diskSizeMiB = 8 + partSizes."boot" + partSizes."data" + (partSizes."system" * 2) + 1;
2222
in

testing/release-validation.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ in
7979
},
8080

8181
# PlayOS version we are updating into.
82-
# Only used in the stub update server, not set in the bundle, etc.
82+
# Used in the stub update server and set in the bundle.
8383
nextSystemVersion ? "9999.99.99",
8484

8585
# PlayOS bundle for the next update

0 commit comments

Comments
 (0)