Skip to content

Commit

Permalink
Added collectstatic command to main.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
FredMagas committed Aug 8, 2024
1 parent 2e041e3 commit 132d7ce
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Run migrations
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }} # Certifique-se de adicionar esta variável nos segredos do GitHub
DATABASE_URL: ${{ secrets.DATABASE_URL }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
EMAIL_HOST: ${{ secrets.EMAIL_HOST }}
EMAIL_PORT: ${{ secrets.EMAIL_PORT }}
Expand All @@ -43,8 +43,15 @@ jobs:
source venv/bin/activate
./retry.sh
- name: Collect static files
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
source venv/bin/activate
python manage.py collectstatic --noinput
- name: Trigger Render Deploy
env:
RENDER_DEPLOY_HOOK: ${{ secrets.RENDER_DEPLOY_HOOK }} # Usando o segredo do hook de deploy
RENDER_DEPLOY_HOOK: ${{ secrets.RENDER_DEPLOY_HOOK }}
run: |
curl -X POST "${{ secrets.RENDER_DEPLOY_HOOK }}"

0 comments on commit 132d7ce

Please sign in to comment.