-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
# Install node
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.12
# Install dependencies
- name: Install Dependencies
working-directory: ./ChargeUp
run: npm install --legacy-peer-deps
# Build Angular
- name: Build Angular App
working-directory: ./ChargeUp
run: npm run build
# Deploy (skip Oryx build)
- name: Deploy to Azure Static Web Apps
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LEMON_GRASS_011A4C90F }}
action: "upload"
app_location: "./ChargeUp"
output_location: "ChargeUp/dist/ChargeUp/browser"
skip_app_build: true
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Device info (if applicable):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels