From 7263453787f1e52c9b5c8014ab82ce092ada9dd6 Mon Sep 17 00:00:00 2001 From: Javier Luraschi Date: Thu, 31 Oct 2024 12:56:30 -0700 Subject: [PATCH] [.github] avoid deployment checks --- .github/workflows/apps-devel.yaml | 96 +++++++++---------------------- .github/workflows/apps-prod.yaml | 86 ++++++++------------------- 2 files changed, 51 insertions(+), 131 deletions(-) diff --git a/.github/workflows/apps-devel.yaml b/.github/workflows/apps-devel.yaml index 5a4692f3..27121a65 100644 --- a/.github/workflows/apps-devel.yaml +++ b/.github/workflows/apps-devel.yaml @@ -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 }} \ No newline at end of file + - 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 }} diff --git a/.github/workflows/apps-prod.yaml b/.github/workflows/apps-prod.yaml index 39ed5155..ffefe27d 100644 --- a/.github/workflows/apps-prod.yaml +++ b/.github/workflows/apps-prod.yaml @@ -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 }} \ No newline at end of file