Skip to content

Commit

Permalink
Correcao caminhos
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricioveronez committed May 20, 2024
1 parent 066302b commit 66371e3
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/main_teste-labs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
python-version: '3.12'

- name: Create and start virtual environment
working-directory: ./src
run: |
python -m venv venv
source venv/bin/activate
Expand All @@ -33,14 +34,15 @@ jobs:
# Optional: Add step to run tests here (PyTest, Django test suites, etc.)

- name: Zip artifact for deployment
working-directory: ./src
run: zip release.zip ./* -r

- name: Upload artifact for deployment jobs
uses: actions/upload-artifact@v3
with:
name: python-app
path: |
release.zip
./src/release.zip
!venv/
deploy:
Expand All @@ -49,8 +51,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 +63,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_168523CB59FB459080287DC7D88649D7 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C607E4B522144951A16DD6BABE908BE9 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_A994D9A3343D4187BD0DCCC6217597BD }}

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_168523CB59FB459080287DC7D88649D7 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C607E4B522144951A16DD6BABE908BE9 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_A994D9A3343D4187BD0DCCC6217597BD }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
Expand Down

0 comments on commit 66371e3

Please sign in to comment.