Skip to content

Commit

Permalink
added collectstatic command
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-bazad committed Jun 12, 2024
1 parent 0529242 commit c68f5c0
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/main_abd-portfolio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.)

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c68f5c0

Please sign in to comment.