From dd4ac5374a4cb46c93cb674df183c54554e55a41 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Wed, 18 Mar 2026 22:39:50 +0000 Subject: [PATCH 1/3] =?UTF-8?q?A=C3=B1adir=20.gitea/workflows/deploy.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yaml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..1db27d7 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,37 @@ +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: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Build + env: + VITE_SUPABASE_URL: ${{ vars.VITE_SUPABASE_URL }} + VITE_SUPABASE_ANON_KEY: ${{ vars.VITE_SUPABASE_ANON_KEY }} + run: bun run build + + # No hace falta instalar el CLI globalmente, usamos bunx + - name: Deploy to Azure Static Web Apps + env: + AZURE_SWA_DEPLOYMENT_TOKEN: ${{ secrets.AZURE_SWA_DEPLOYMENT_TOKEN }} + run: | + bunx @azure/static-web-apps-cli deploy ./dist \ + --env production \ + --deployment-token "$AZURE_SWA_DEPLOYMENT_TOKEN" From a8229f12d53e2e8f7d32bcb1eeb881318a9a1781 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Thu, 19 Mar 2026 13:56:12 +0000 Subject: [PATCH 2/3] Actualizar .gitea/workflows/deploy.yaml --- .gitea/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 1db27d7..a32eb6b 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -25,7 +25,7 @@ jobs: env: VITE_SUPABASE_URL: ${{ vars.VITE_SUPABASE_URL }} VITE_SUPABASE_ANON_KEY: ${{ vars.VITE_SUPABASE_ANON_KEY }} - run: bun run build + run: bunx --bun vite build # No hace falta instalar el CLI globalmente, usamos bunx - name: Deploy to Azure Static Web Apps From 96a045dc67989b0711a869fdf301d25e0bc3b0ef Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Thu, 19 Mar 2026 13:58:43 +0000 Subject: [PATCH 3/3] =?UTF-8?q?A=C3=B1adir=20staticwebapp.config.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- staticwebapp.config.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 staticwebapp.config.json diff --git a/staticwebapp.config.json b/staticwebapp.config.json new file mode 100644 index 0000000..a7c52b1 --- /dev/null +++ b/staticwebapp.config.json @@ -0,0 +1,14 @@ +{ + "navigationFallback": { + "rewrite": "/index.html", + "exclude": [ + "/assets/*", + "/*.css", + "/*.js", + "/*.ico", + "/*.png", + "/*.jpg", + "/*.svg" + ] + } +}