Merge pull request #882 from PEM-Humboldt/feature/shortInfoMigrateToH… #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD for develop | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: | |
env: | |
AZURE_WEBAPP_NAME: biotablero-frontend | |
REACT_APP_ENVIRONMENT: develop | |
REACT_APP_BACKEND_BIAB_URL: ${{ vars.BACKEND_BIAB_URL }} | |
REACT_APP_BACKEND_URL: ${{ vars.BACKEND_URL }} | |
REACT_APP_BACKEND_KEY: ${{ secrets.BACKEND_KEY }} | |
REACT_APP_GA_TRACKING_ID: ${{ vars.GA_TRACKING_ID }} | |
jobs: | |
build-and-deploy: | |
name: Build and Deploy | |
runs-on: ubuntu-latest | |
environment: | |
name: develop | |
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: yarn | |
- name: install & build | |
run: | | |
yarn workspaces foreach install | |
yarn workspaces foreach run build-pkg | |
yarn install | |
yarn run build | |
- name: Deploy to Azure WebApp | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: ${{ env.AZURE_WEBAPP_NAME }} | |
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} |