add debug print for auth token #11
This file contains 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: 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: Install dependencies | |
run: | | |
pip install -r ${{ matrix.folder }}/requirements.txt | |
- name: Deploy to ReflexCloud | |
run: | | |
chmod +x deploy.sh | |
./deploy.sh ${{ matrix.folder }} |