Skip to content

Commit

Permalink
Update master_presentationapi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-crkn authored Oct 8, 2024
1 parent b615a5d commit 58e9bf7
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/master_presentationapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Create and start virtual environment
- name: Install Poetry
run: |
python -m venv venv
source venv/bin/activate
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: pip install -r requirements.txt
run: |
poetry install --no-dev
# Optional: Add step to run tests here (PyTest, Django test suites, etc.)

Expand All @@ -49,8 +50,8 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
Expand All @@ -61,18 +62,18 @@ jobs:
- name: Unzip artifact for deployment
run: unzip release.zip


- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E1F1C1081B6A4C9FBF18AC9470A3607F }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_7A7C48FB4730461892A36462BA323C9B }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_077124EF1AD34E64A4DDF33FC2C5F685 }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E1F1C1081B6A4C9FBF18AC9470A3607F }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_7A7C48FB4730461892A36462BA323C9B }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_077124EF1AD34E64A4DDF33FC2C5F685 }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3
id: deploy-to-webapp
with:
app-name: 'PresentationAPI'
slot-name: 'Production'


0 comments on commit 58e9bf7

Please sign in to comment.