diff --git a/.github/workflows/main_abd-portfolio.yml b/.github/workflows/main_abd-portfolio.yml index 7e38a94..0a10472 100644 --- a/.github/workflows/main_abd-portfolio.yml +++ b/.github/workflows/main_abd-portfolio.yml @@ -29,6 +29,9 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt + + - name: Run collectstatic + run: python manage.py collectstatic # Optional: Add step to run tests here (PyTest, Django test suites, etc.) @@ -49,8 +52,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 @@ -61,13 +64,13 @@ jobs: - name: Unzip artifact for deployment run: unzip release.zip - - - name: Login to Azure - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_4FA070F86B2D416AA66453DE6C294B59 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C87F80D2C33D482CAD92139DC4CAAF82 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_6021718A56EE46E0B136E109CC511C0A }} + + - name: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_4FA070F86B2D416AA66453DE6C294B59 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C87F80D2C33D482CAD92139DC4CAAF82 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_6021718A56EE46E0B136E109CC511C0A }} - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v2