Skip to content

Oryx sucks, trying a custom build instead. #7

Oryx sucks, trying a custom build instead.

Oryx sucks, trying a custom build instead. #7

name: Build and Deploy React App
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Checkout your repository
- name: Checkout code
uses: actions/checkout@v3
# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
# Install dependencies and build
- name: Install and build
run: |
cd frontend
npm install
npm run build
# Deploy build artifacts (e.g., to Azure)
- name: Deploy to Azure
uses: azure/webapps-deploy@v2
with:
app-name: hodlbot-vitefe
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ./frontend/build