Skip to content

Commit

Permalink
update versions of several actions in this workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pacharanero committed Mar 19, 2024
1 parent dd8ba4e commit 091fa1f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/staging_rcpch-dgc-server-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4 # latest as at March 2024

- name: Set up Python version
uses: actions/setup-python@v1
uses: actions/setup-python@v5 # latest as at March 2024
with:
python-version: '3.12'

- name: Create and start virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: pip install -r requirements.txt

# Optional: Add step to run tests here (PyTest, Django test suites, etc.)

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

- name: Upload artifact for deployment jobs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4 # latest as at March 2024
with:
name: python-app
path: |
Expand All @@ -49,21 +49,21 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4 # latest as at March 2024
with:
name: python-app

- name: Unzip artifact for deployment
run: unzip release.zip


- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3 # latest as at March 2024
id: deploy-to-webapp
with:
app-name: 'rcpch-dgc-server-staging'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_20EF65F771AA44219C3529732124EFCE }}
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_20EF65F771AA44219C3529732124EFCE }}

0 comments on commit 091fa1f

Please sign in to comment.