Skip to content

Commit

Permalink
[.github] avoid deployment checks
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Oct 31, 2024
1 parent 42b74cc commit 7263453
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 131 deletions.
96 changes: 28 additions & 68 deletions .github/workflows/apps-devel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,73 +9,33 @@ on:
- apps/**

jobs:
setup:
devel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: '3.10'
- name: Install Hal9
run: pip install hal9

deploy_echo:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/echo') || contains(github.event.commits.*.modified, 'apps/echo')
steps:
- name: Deploy Echo
run: hal9 deploy apps/echo --name ECHO --access public --title Echo --description "Echoes user input"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_hal9:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/hal9') || contains(github.event.commits.*.modified, 'apps/hal9')
steps:
- name: Deploy Hal9
run: hal9 deploy apps/hal9 --name hal9 --access public --title Hal9 --description "Conversations and content creation"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_flux:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/flux') || contains(github.event.commits.*.modified, 'apps/flux')
steps:
- name: Deploy Flux
run: hal9 deploy apps/flux --name flux --access public --title Flux --description "Photorealistic content creation"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_browser:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/browser') || contains(github.event.commits.*.modified, 'apps/browser')
steps:
- name: Deploy Browser
run: hal9 deploy apps/browser --name browser --access unlisted --title Browser --description "Capable of browsing the web"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_openai:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/openai') || contains(github.event.commits.*.modified, 'apps/openai')
steps:
- name: Deploy OpenAI
run: hal9 deploy apps/openai --name openai --access public --title OpenAI --description "Makes use of OpenAI O1"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_swarm:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/swarm') || contains(github.event.commits.*.modified, 'apps/swarm')
steps:
- name: Deploy Swarm
run: hal9 deploy apps/swarm --name swarm --access public --title Swarm --description "Uses OpenAI's Swarm."
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}
- uses: actions/checkout@v1
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: '3.10'
- name: Install Hal9
run: pip install hal9
- name: Deploy Echo
run: hal9 deploy apps/echo --name ECHO --access public --url https://api.devel.hal9.com --title Echo --description "Echoes user input"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN_DEVEL }}
- name: Deploy Hal9
run: hal9 deploy apps/hal9 --name hal9 --access public --url https://api.devel.hal9.com --title Hal9 --description "Conversations and content creation"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN_DEVEL }}
- name: Deploy flux
run: hal9 deploy apps/flux --name flux --access public --url https://api.devel.hal9.com --title Flux --description "Photorealistic content creation"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN_DEVEL }}
- name: Deploy Browser
run: hal9 deploy apps/browser --name browser --access unlisted --url https://api.devel.hal9.com --title Browser --description "Capable of browsing the web"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN_DEVEL }}
- name: Deploy OpenAI
run: hal9 deploy apps/openai --name openai --access public --url https://api.devel.hal9.com --title OpenAI --description "Makes use of OpenAI O1"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN_DEVEL }}
86 changes: 23 additions & 63 deletions .github/workflows/apps-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,73 +9,33 @@ on:
- apps/**

jobs:
setup:
prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: '3.10'
- name: Install Hal9
run: pip install hal9

deploy_echo:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/echo') || contains(github.event.commits.*.modified, 'apps/echo')
steps:
- name: Deploy Echo
run: hal9 deploy apps/echo --name ECHO --access public --title Echo --description "Echoes user input"
env:
- uses: actions/checkout@v1
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: '3.10'
- name: Install Hal9
run: pip install hal9
- name: Deploy Echo
run: hal9 deploy apps/echo --name ECHO --access public --title Echo --description "Echoes user input"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_hal9:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/hal9') || contains(github.event.commits.*.modified, 'apps/hal9')
steps:
- name: Deploy Hal9
run: hal9 deploy apps/hal9 --name hal9 --access public --title Hal9 --description "Conversations and content creation"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_flux:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/flux') || contains(github.event.commits.*.modified, 'apps/flux')
steps:
- name: Deploy Flux
run: hal9 deploy apps/flux --name flux --access public --title Flux --description "Photorealistic content creation"
env:
- name: Deploy Hal9
run: hal9 deploy apps/hal9 --name hal9 --access public --title Hal9 --description "Conversations and content creation"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_browser:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/browser') || contains(github.event.commits.*.modified, 'apps/browser')
steps:
- name: Deploy Browser
run: hal9 deploy apps/browser --name browser --access unlisted --title Browser --description "Capable of browsing the web"
env:
- name: Deploy Flux
run: hal9 deploy apps/flux --name flux --access public --title Flux --description "Photorealistic content creation"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_openai:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/openai') || contains(github.event.commits.*.modified, 'apps/openai')
steps:
- name: Deploy OpenAI
run: hal9 deploy apps/openai --name openai --access public --title OpenAI --description "Makes use of OpenAI O1"
env:
- name: Deploy Browser
run: hal9 deploy apps/browser --name browser --access unlisted --title Browser --description "Capable of browsing the web"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

deploy_swarm:
runs-on: ubuntu-latest
needs: setup
if: contains(github.event.commits.*.added, 'apps/swarm') || contains(github.event.commits.*.modified, 'apps/swarm')
steps:
- name: Deploy Swarm
run: hal9 deploy apps/swarm --name swarm --access public --title Swarm --description "Uses OpenAI's Swarm."
env:
- name: Deploy OpenAI
run: hal9 deploy apps/openai --name openai --access public --title OpenAI --description "Makes use of OpenAI O1"
env:
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}

0 comments on commit 7263453

Please sign in to comment.