3232 - name : Install dependencies
3333 run : pip install -r requirements.txt
3434
35+ - name : Collecting Static Files
36+ run : python manage.py collectstatic
37+
3538 # Optional: Add step to run tests here (PyTest, Django test suites, etc.)
3639
3740 - name : Zip artifact for deployment
@@ -48,12 +51,12 @@ jobs:
4851 deploy :
4952 runs-on : ubuntu-latest
5053 needs : build
51- environment :
52- name : ' Production'
54+ environment :
55+ name : ' Production'
5356 url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
54- permissions :
55- id-token : write # This is required for requesting the JWT
56- contents : read # This is required for actions/checkout
57+ permissions :
58+ id-token : write # This is required for requesting the JWT
59+ contents : read # This is required for actions/checkout
5760
5861 steps :
5962 - name : Download artifact from build job
@@ -64,18 +67,18 @@ jobs:
6467 - name : Unzip artifact for deployment
6568 run : unzip release.zip
6669
67-
68- - name : Login to Azure
69- uses : azure/login@v2
70- with :
71- client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_A1461F18A7404A3CBAB83496FA9FBF54 }}
72- tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_FE4FF5F0DF1C4FDBA2B05ED3985C4E88 }}
73- subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_611DAA6BB9FE4E498D5999B897745E1B }}
70+
71+ - name : Login to Azure
72+ uses : azure/login@v2
73+ with :
74+ client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_A1461F18A7404A3CBAB83496FA9FBF54 }}
75+ tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_FE4FF5F0DF1C4FDBA2B05ED3985C4E88 }}
76+ subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_611DAA6BB9FE4E498D5999B897745E1B }}
7477
7578 - name : ' Deploy to Azure Web App'
7679 uses : azure/webapps-deploy@v3
7780 id : deploy-to-webapp
7881 with :
7982 app-name : ' codejam'
8083 slot-name : ' Production'
81-
84+
0 commit comments