Skip to content

Commit

Permalink
Merge pull request #29 from rodekruis/elwin/poc-deployment
Browse files Browse the repository at this point in the history
fix: PoC moved into POC-folder
  • Loading branch information
elwinschmitz authored Dec 19, 2024
2 parents bd14315 + ea2fe9b commit a9c6d71
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/main_relief-system-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches:
- main
paths:
- '.github/workflows/main_relief-system-webapp.yml'
- 'POC/**'
workflow_dispatch:

jobs:
Expand All @@ -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
Expand Down Expand Up @@ -66,4 +73,4 @@ jobs:
with:
app-name: 'relief-system-webapp'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_14215D0447A7445C9C5C9DC95810FE32 }}
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_14215D0447A7445C9C5C9DC95810FE32 }}

0 comments on commit a9c6d71

Please sign in to comment.