-
Notifications
You must be signed in to change notification settings - Fork 28
50 lines (45 loc) · 1.79 KB
/
apps-prod.yaml
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
name: Apps
on:
push:
branches:
- release
paths:
- .github/workflows/apps*
- apps/**
jobs:
devel:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: '3.10'
- name: Install Hal9
run: pip install hal9
- uses: actions/checkout@v1
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
since_last_remote_commit: true
- name: Deploy changed apps
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
if [[ "$file" == apps/flux/* ]]; then
hal9 deploy apps/flux --name flux --access public --title Flux --description "Photorealistic content creation";
elif [[ "$file" == apps/echo/* ]]; then
hal9 deploy apps/echo --name ECHO --access public --title Echo --description "Echoes user input";
elif [[ "$file" == apps/hal9/* ]]; then
hal9 deploy apps/hal9 --name hal9 --access public --title Hal9 --description "Conversations and content creation";
elif [[ "$file" == apps/browser/* ]]; then
hal9 deploy apps/browser --name browser --access unlisted --title Browser --description "Capable of browsing the web";
elif [[ "$file" == apps/openai/* ]]; then
hal9 deploy apps/openai --name openai --access public --title OpenAI --description "Makes use of OpenAI O1";
elif [[ "$file" == apps/swarm/* ]]; then
hal9 deploy apps/swarm --name swarm --access public --title Swarm --description "Makes use of OpenAI Swarm";
fi
done