Some checks failed
Deploy to Azure Static Web Apps / build-and-deploy (push) Failing after 1m18s
35 lines
705 B
YAML
35 lines
705 B
YAML
name: Deploy to Azure Static Web Apps
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Build
|
|
run: bun run build
|
|
|
|
- name: Install Azure SWA CLI
|
|
run: bun install -g @azure/static-web-apps-cli
|
|
|
|
- name: Deploy to Azure Static Web Apps
|
|
run: |
|
|
swa deploy ./dist \
|
|
--env production \
|
|
--deployment-token "${{ secrets.AZURE_SWA_DEPLOYMENT_TOKEN }}"
|