This repository has been archived on 2026-01-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Acad-IA/.gitea/workflows/deploy.yml
Alejandro Rosales f1591bb9b9
All checks were successful
Deploy to Azure Static Web Apps / build-and-deploy (push) Successful in 1m47s
Update deployment workflow to use Bun instead of Node.js
2025-11-28 10:27:49 -06:00

35 lines
701 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 Bun
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 }}"