[apps/hal9] PDF to CSV Tool / Messages History Fix (#486) #82
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Apps | |
| on: | |
| push: | |
| branches: | |
| - main | |
| 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: Print changed-files outputs | |
| run: echo "${{ toJson(steps.changed-files.outputs) }}" | |
| - name: Deploy changed apps | |
| env: | |
| ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
| HAL9_TOKEN: ${{ secrets.HAL9_TOKEN_DEVEL }} | |
| run: | | |
| if echo "${ALL_CHANGED_FILES}" | grep -q "apps/hal9/"; then | |
| echo "apps/hal9 changed" | |
| hal9 deploy apps/hal9 --name hal9 --access public --url https://api.devel.hal9.com --title Hal9 --description "Conversations and content creation"; | |
| fi | |
| for file in ${ALL_CHANGED_FILES}; do | |
| echo "$file was changed" | |
| if [[ "$file" == apps/flux/* ]]; then | |
| hal9 deploy apps/flux --name flux --access public --url https://api.devel.hal9.com --title Flux --description "Photorealistic content creation"; | |
| fi | |
| if [[ "$file" == apps/echo/* ]]; then | |
| hal9 deploy apps/echo --name ECHO --access public --url https://api.devel.hal9.com --title Echo --description "Echoes user input"; | |
| fi | |
| if [[ "$file" == apps/browser/* ]]; then | |
| hal9 deploy apps/browser --name browser --access unlisted --url https://api.devel.hal9.com --title Browser --description "Capable of browsing the web"; | |
| fi | |
| if [[ "$file" == apps/openai/* ]]; then | |
| hal9 deploy apps/openai --name openai --access public --url https://api.devel.hal9.com --title OpenAI --description "Makes use of OpenAI O1"; | |
| fi | |
| if [[ "$file" == apps/swarm/* ]]; then | |
| hal9 deploy apps/swarm --name swarm --access public --url https://api.devel.hal9.com --title Swarm --description "Makes use of OpenAI Swarm"; | |
| fi | |
| if [[ "$file" == apps/deepseek/* ]]; then | |
| hal9 deploy apps/deepseek --name deepseek --access public --url https://api.devel.hal9.com --title DeepSeek --description "Makes use of DeepSeek"; | |
| fi | |
| if [[ "$file" == apps/browseruse/* ]]; then | |
| hal9 deploy apps/browseruse --name browseruse --access unlisted --url https://api.devel.hal9.com --title "Browser Use" --description "Capable of browsing the web with browser-use"; | |
| fi | |
| if [[ "$file" == apps/webscrape/* ]]; then | |
| hal9 deploy apps/webscrape --name webscrape --access unlisted --url https://api.devel.hal9.com --title "Webscrape to CSV" --description "Webscrape and store results in CSV"; | |
| fi | |
| done |