Skip to content

Commit bc327d6

Browse files
committed
Added Vortex release version to docs.
1 parent 4aa9ee5 commit bc327d6

5 files changed

Lines changed: 31 additions & 31 deletions

File tree

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
- '**release-installer**'
1111
workflow_dispatch:
1212
inputs:
13-
installer_version:
14-
description: 'Override installer version (leave empty for auto-discovery)'
13+
version:
14+
description: 'Override version (leave empty for auto-discovery)'
1515
required: false
1616
type: string
1717

@@ -29,6 +29,9 @@ jobs:
2929
vortex-release-installer:
3030
runs-on: ubuntu-latest
3131

32+
outputs:
33+
release-version: ${{ steps.version.outputs.value }}
34+
3235
steps:
3336
- name: Checkout code
3437
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
@@ -50,28 +53,31 @@ jobs:
5053
run: composer install
5154
working-directory: .vortex/installer
5255

53-
- name: Add version
56+
- name: Set release version
57+
id: version
5458
run: |
55-
if [ -n "${{ inputs.installer_version }}" ]; then
56-
VERSION="${{ inputs.installer_version }}"
59+
if [ -n "${{ inputs.version }}" ]; then
60+
version="${{ inputs.version }}"
5761
else
5862
TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }}
5963
SHA=${{ github.ref_type == 'branch' && github.sha || '' }}
60-
VERSION="${TAG:-${SHA}}"
64+
version="${TAG:-${SHA}}"
6165
fi
62-
sed -i "s/\"vortex-installer-version\": \"development\"/\"vortex-installer-version\": \"${VERSION}\"/g" box.json
66+
echo "RELEASE_VERSION=$version" >> "$GITHUB_ENV"
67+
echo "value=$version" >> "$GITHUB_OUTPUT"
68+
echo "Release version: $version"
6369
working-directory: .vortex/installer
6470

6571
- name: Build PHAR
66-
run: composer build
72+
run: |
73+
sed -i "s/\"vortex-installer-version\": \"development\"/\"vortex-installer-version\": \"${RELEASE_VERSION}\"/g" box.json
74+
composer build
6775
working-directory: .vortex/installer
6876

6977
- name: Test PHAR
70-
run: ./build/installer.phar --no-interaction --no-cleanup test || exit 1
71-
working-directory: .vortex/installer
72-
73-
- name: Test PHAR version
74-
run: ./build/installer.phar --version || exit 1
78+
run: |
79+
./build/installer.phar --version
80+
./build/installer.phar --no-interaction --no-cleanup test || exit 1
7581
working-directory: .vortex/installer
7682

7783
- name: Upload artifact
@@ -99,6 +105,12 @@ jobs:
99105
with:
100106
fetch-depth: 0
101107

108+
- name: Set version
109+
run: |
110+
version="${{ needs.vortex-release-installer.outputs.release-version }}"
111+
echo "RELEASE_VERSION=$version" >> "$GITHUB_ENV"
112+
echo "Release version: $version"
113+
102114
- name: Setup Node.js
103115
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
104116
with:

.vortex/docs/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const config = {
174174
],
175175
},
176176
],
177-
copyright: `Copyright ©${new Date().getFullYear()} DrevOps®. Built with Docusaurus.`,
177+
copyright: `Vortex version: ${process.env.RELEASE_VERSION || 'development'} <br/>Drupal is a <a class="footer__link-item" href="https://www.drupal.org/about/trademark">registered trademark</a> of <a class="footer__link-item" href="https://dri.es/">Dries Buytaert</a>.<br/>Copyright ©${new Date().getFullYear()} <a class="footer__link-item" href="https://www.drevops.com/">DrevOps&reg;</a>. Built with Docusaurus.`,
178178
},
179179
prism: {
180180
theme: prismThemes.github,

.vortex/docs/src/components/Card/Card.module.css

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,6 @@
3737
);
3838
}
3939

40-
.card::after {
41-
content: '';
42-
position: absolute;
43-
top: 0;
44-
left: -100%;
45-
width: 100%;
46-
height: 100%;
47-
background: linear-gradient(
48-
90deg,
49-
transparent,
50-
rgba(255, 255, 255, 0.4),
51-
transparent
52-
);
53-
transition: left 0.5s ease;
54-
}
55-
5640
.card[href]:hover {
5741
transform: translateY(-8px);
5842
box-shadow:

.vortex/docs/src/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@
384384
}
385385

386386
/* Footer accessibility improvements */
387+
[data-theme='light'] .footer--dark .footer__link-item {
388+
text-decoration: underline;
389+
}
390+
387391
[data-theme='light'] .footer--dark .footer__link-item:hover {
388392
--ifm-footer-link-hover-color: #92a4ed;
389393
}

.vortex/tests/phpunit/Traits/SutTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ protected function assertVortexFilesPresent(string $webroot = 'web'): void {
400400
$this->assertFileExists('.github/workflows/label-merge-conflict.yml');
401401
$this->assertFileExists('.github/workflows/draft-release-notes.yml');
402402

403-
$this->assertFileDoesNotExist('.github/workflows/vortex-release-docs.yml');
403+
$this->assertFileDoesNotExist('.github/workflows/vortex-release.yml');
404404
$this->assertFileDoesNotExist('.github/workflows/vortex-test-docs.yml');
405405
$this->assertFileDoesNotExist('.github/workflows/vortex-test-common.yml');
406406
$this->assertFileDoesNotExist('.github/workflows/vortex-test-installer.yml');

0 commit comments

Comments
 (0)