Skip to content

Commit

Permalink
updated yml with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornweb committed Apr 5, 2024
1 parent 276738a commit c91a982
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/main_slipspace.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Node.js app to Azure Web App - slipspace

on:
Expand Down Expand Up @@ -42,8 +39,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 @@ -53,13 +50,22 @@ jobs:

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

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_8D61FDF6CC7E404A98BC96270945C9F7 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_D0F9FEB8912341D0A5A96465DB76B94E }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_4B37E3B0B485419C98F491DEA14A2506 }}

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_8D61FDF6CC7E404A98BC96270945C9F7 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_D0F9FEB8912341D0A5A96465DB76B94E }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_4B37E3B0B485419C98F491DEA14A2506 }}

- name: Set environment variables
run: |
echo "REACT_APP_GOOGLE_MAPS_API_KEY=${{ secrets.REACT_APP_GOOGLE_MAPS_API_KEY }}" >> $GITHUB_ENV
echo "TRIPADVISOR_API_KEY_ENV=${{ secrets.TRIPADVISOR_API_KEY_ENV }}" >> $GITHUB_ENV
echo "DUFFEL_API_KEY_ENV=${{ secrets.DUFFEL_API_KEY_ENV }}" >> $GITHUB_ENV
echo "RAPID_API_KEY_ENV=${{ secrets.RAPID_API_KEY_ENV }}" >> $GITHUB_ENV
echo "OAG_API_KEY_ENV=${{ secrets.OAG_API_KEY_ENV }}" >> $GITHUB_ENV
echo "REACT_APP_LOCAL_API_URL=${{ secrets.REACT_APP_LOCAL_API_URL }}" >> $GITHUB_ENV
- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
Expand All @@ -68,4 +74,3 @@ jobs:
app-name: 'slipspace'
slot-name: 'Production'
package: .

0 comments on commit c91a982

Please sign in to comment.