Skip to content

fix path of deploy.sh #8

fix path of deploy.sh

fix path of deploy.sh #8

Workflow file for this run

name: deploy
on:
push:
branches:
- lendemor/deploy_pipeline
jobs:
setup-matrix:
runs-on: ubuntu-latest
outputs:
folders: ${{ steps.generate-matrix.outputs.folders }}
steps:
- uses: actions/checkout@v3
- name: Generate Matrix
id: generate-matrix
run: |
FOLDERS=$(ls -d */ | sed 's|/||g' | jq -R -s -c 'split("\n")[:-1]')
echo "folders=$FOLDERS" >> $GITHUB_OUTPUT
- name: Debug output (matrix)
run: |
echo "Subfolders: ${{ env.folders }}"
deploy:
needs: setup-matrix
runs-on: ubuntu-latest
strategy:
matrix:
folder: ${{fromJson(needs.setup-matrix.outputs.folders)}}
steps:
- uses: actions/checkout@v3
- name: Deploy to ReflexCloud
run: ./deploy.sh ${{ matrix.folder }}