-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.27 KB
/
Copy pathbundle.yml
File metadata and controls
53 lines (43 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 04-bundle-plugin-with-data
on:
workflow_dispatch:
permissions:
contents: read
jobs:
bundle:
name: 01-bundle-plugin-with-data
runs-on: ubuntu-latest
steps:
- name: 01-checkout
uses: actions/checkout@v4
- name: 02-setup-tooling
uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd
with:
install: true
cache: true
experimental: true
env:
# Required for aqua-backed tool installs to avoid GitHub API rate limits in CI.
GITHUB_TOKEN: ${{ github.token }}
- name: 03-build
run: |
mise run setup
mise run test
mise run build
- name: 04-create-bundle
run: |
mkdir -p bundle
cp -R dist bundle/dist
if [ -f data/docs.parquet ]; then
mkdir -p bundle/data
cp data/docs.parquet bundle/data/docs.parquet
fi
cp package.json bundle/package.json
cp README.md bundle/README.md
tar -czf opencode-palantir-bundle.tgz -C bundle .
- name: 05-upload-bundle
uses: actions/upload-artifact@v4
with:
name: opencode-palantir-bundle
if-no-files-found: error
path: opencode-palantir-bundle.tgz