From 88c7d63f29499ba0a52c4d058467dca3ef73ba2f Mon Sep 17 00:00:00 2001 From: Michael Timbert Date: Tue, 24 Feb 2026 15:07:18 +0100 Subject: [PATCH 1/5] Add artifact build to the CI --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c22eeeef..88c43554 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,3 +33,38 @@ jobs: - name: Run e2e tests run: npm run e2e + + build-artifact: + needs: tests_e2e + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v3 + with: + node-version: 24.x + cache: npm + + - name: apt install + run: sudo apt-get install -y git jq + + - name: build + run: | + npm install + npm run release + + - name: Get short SHA + id: short_sha + run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + + - name: Get Zonemaster-GUI version + id: version + run: | + VERSION=`jq -r '.version | sub("^v"; "")' package.json` + echo "version=$VERSION" >> $GITHUB_OUTPUT + + - name: upload artifact + uses: actions/upload-artifact@v4 + with: + name: zonemaster_web_gui_v${{ steps.version.outputs.version }}-${{ steps.short_sha.outputs.short_sha }} + path: zonemaster_web_gui_v${{ steps.version.outputs.version }}.zip From 32d17fefb52afe94a182d7759cc4bbe504788fe7 Mon Sep 17 00:00:00 2001 From: Michael Timbert Date: Tue, 3 Mar 2026 13:51:14 +0100 Subject: [PATCH 2/5] fix sha commit --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88c43554..1e79ec87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,12 @@ jobs: - name: Get short SHA id: short_sha - run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + run: | + if [ "${{ github.event_name }}" == "pull_request" ]; then + echo "SHORT_SHA=$(echo ${{ github.event.pull_request.head.sha }} | cut -c1-7)" >> $GITHUB_ENV + else + echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV + fi - name: Get Zonemaster-GUI version id: version @@ -66,5 +71,5 @@ jobs: - name: upload artifact uses: actions/upload-artifact@v4 with: - name: zonemaster_web_gui_v${{ steps.version.outputs.version }}-${{ steps.short_sha.outputs.short_sha }} + name: zonemaster_web_gui_v${{ steps.version.outputs.version }}-${{ env.SHORT_SHA }} path: zonemaster_web_gui_v${{ steps.version.outputs.version }}.zip From af89872cba6f5fe0d7692f2ed5b1c0158a1585f1 Mon Sep 17 00:00:00 2001 From: Michael Timbert Date: Thu, 11 Jun 2026 09:32:03 +0200 Subject: [PATCH 3/5] Documentation: add artifact section --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 620541fb..472dd629 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,16 @@ Refer to the [docs](/docs) directory for detailed information on: For contribution guidelines, see [CONTRIBUTE.md](CONTRIBUTE.md). +## CI artifact + +A zip (`zonemaster_web_gui_.zip`) is built and uploaded as a GitHub Actions artifact on every push and pull request. This artifact can be useful for release testing and PR review. +To download it: +1. Go to the [Actions tab](https://github.com/zonemaster/zonemaster-gui/actions) of the repository. +2. Select a workflow run (e.g. for a specific PR or branch). +3. Scroll to the bottom of the run summary to the **Artifacts** section. +4. Download the artifact named `Zonemaster-LDNS--` `zonemaster_web_gui_-`. +The artifact name includes the module version and the first 7 characters of the commit SHA. + ## License This is free software under a 2-clause BSD license. The full text of the license can be found in the [LICENSE](LICENSE) file included in this repository. From 185d10a9bf6169fe8be8181f29313d968f040959 Mon Sep 17 00:00:00 2001 From: MichaelTimbert <110017095+MichaelTimbert@users.noreply.github.com> Date: Thu, 11 Jun 2026 10:41:35 +0200 Subject: [PATCH 4/5] Update README.md Co-authored-by: Mats Dufberg --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 472dd629..85c5cee9 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ To download it: 1. Go to the [Actions tab](https://github.com/zonemaster/zonemaster-gui/actions) of the repository. 2. Select a workflow run (e.g. for a specific PR or branch). 3. Scroll to the bottom of the run summary to the **Artifacts** section. -4. Download the artifact named `Zonemaster-LDNS--` `zonemaster_web_gui_-`. +4. Download the artifact named `zonemaster_web_gui_-`. The artifact name includes the module version and the first 7 characters of the commit SHA. ## License From 257649e0cbdc2e4fe7dc3ca127be03e2df450515 Mon Sep 17 00:00:00 2001 From: Michael Timbert Date: Tue, 16 Jun 2026 09:38:59 +0200 Subject: [PATCH 5/5] CI: force update --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e79ec87..3f7c9d22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,9 @@ jobs: node-version: 24.x cache: npm + - name: update + run: sudo apt update -y + - name: apt install run: sudo apt-get install -y git jq