feat(ci): build and upload extension ZIP

This commit is contained in:
Ashhhleyyy 2024-02-20 00:03:13 +00:00
parent fd63bbb091
commit 8b5d69ac70
Signed by: ash
GPG key ID: 83B789081A0878FB
4 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,23 @@
name: Build extension ZIP
on:
push:
branches: ['main']
paths:
- 'extension/**/*'
jobs:
publish:
name: Build extension
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build extension
runs: ./build-ext.sh
- name: Upload extension
actions/upload-artifact@v4
with:
name: aci-ext.zip
path: aci-ext.zip

View file

@ -3,6 +3,8 @@ name: Publish docker image
on: on:
push: push:
branches: ['main'] branches: ['main']
paths:
- 'backend/**/*'
jobs: jobs:
publish: publish:

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ __pycache__/
.direnv/ .direnv/
result result
checkin.db checkin.db
aci-*.zip

8
build-ext.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -uex pipefail
cd extension/
echo "Building ZIP..."
zip -- -r -FS ../aci-ext.zip *
cd ../