feat(ci): build and upload extension ZIP
This commit is contained in:
parent
fd63bbb091
commit
8b5d69ac70
4 changed files with 34 additions and 0 deletions
23
.forgejo/workflows/build-ext.yml
Normal file
23
.forgejo/workflows/build-ext.yml
Normal 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
|
|
@ -3,6 +3,8 @@ name: Publish docker image
|
|||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
paths:
|
||||
- 'backend/**/*'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ __pycache__/
|
|||
.direnv/
|
||||
result
|
||||
checkin.db
|
||||
aci-*.zip
|
||||
|
|
8
build-ext.sh
Executable file
8
build-ext.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -uex pipefail
|
||||
|
||||
cd extension/
|
||||
echo "Building ZIP..."
|
||||
zip -- -r -FS ../aci-ext.zip *
|
||||
cd ../
|
Loading…
Reference in a new issue