Skip to content

V 0.6.2

V 0.6.2 #35

Workflow file for this run

on:
release:
types: [created]
env:
AZURE_WEBAPP_NAME: pos-production # set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: 'build' # set this to the path to your web app project, defaults to the repository root
NODE_VERSION: '16.x' # set this to the node version to use
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Make envfile
uses: SpicyPizza/create-envfile@v1
with:
envkey_REACT_APP_API_URL: ${{ secrets.API_URL_PRODUCTION }}
envkey_REACT_APP_PARTIO_API_URL: ${{ secrets.PARTIO_API_URL_PRODUCTION }}
envkey_REACT_APP_SENTRY_DNS: ${{ secrets.SENTRY_DNS }}
- name: yarn install, build, and test
run: |
# Build and test the project, then
# deploy to Azure Web App.
yarn
yarn 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_PRODUCTION }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}