Oryx sucks, trying a custom build instead. #7
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: 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 |