diff --git a/.github/workflows/azure-static-web-apps-black-stone-02fb10f03.yml b/.github/workflows/azure-static-web-apps-black-stone-02fb10f03.yml index 9f1ad8b..b9d2f49 100644 --- a/.github/workflows/azure-static-web-apps-black-stone-02fb10f03.yml +++ b/.github/workflows/azure-static-web-apps-black-stone-02fb10f03.yml @@ -4,11 +4,17 @@ on: push: branches: - main - - feature/* + paths: + - '.github/workflows/azure-static-web-apps-black-stone-02fb10f03.yml' + - 'PWA/**' pull_request: types: [opened, synchronize, reopened, closed] branches: - main + - develop + paths: + - '.github/workflows/azure-static-web-apps-black-stone-02fb10f03.yml' + - 'PWA/**' jobs: build_and_deploy_job: diff --git a/.github/workflows/main_relief-system-webapp.yml b/.github/workflows/main_relief-system-webapp.yml index eb1e48b..a50d4b4 100644 --- a/.github/workflows/main_relief-system-webapp.yml +++ b/.github/workflows/main_relief-system-webapp.yml @@ -8,6 +8,9 @@ on: push: branches: - main + paths: + - '.github/workflows/main_relief-system-webapp.yml' + - 'POC/**' workflow_dispatch: jobs: @@ -23,19 +26,23 @@ jobs: python-version: '3.12' - name: Create and start virtual environment + working-directory: './POC' run: | python -m venv venv source venv/bin/activate - name: Install dependencies + working-directory: './POC' run: pip install -r requirements.txt # Optional: Add step to run tests here (PyTest, Django test suites, etc.) - name: Zip artifact for deployment + working-directory: './POC' run: zip release.zip ./* -r - name: Upload artifact for deployment jobs + working-directory: './POC' uses: actions/upload-artifact@v4 with: name: python-app @@ -66,4 +73,4 @@ jobs: with: app-name: 'relief-system-webapp' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_14215D0447A7445C9C5C9DC95810FE32 }} \ No newline at end of file + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_14215D0447A7445C9C5C9DC95810FE32 }}