Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,43 @@ 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: |
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
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 }}-${{ env.SHORT_SHA }}
path: zonemaster_web_gui_v${{ steps.version.outputs.version }}.zip