From 458c4b7973054933f633ca054cbfc2801cc51c84 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Fri, 28 Nov 2025 10:16:41 -0600 Subject: [PATCH] Add deployment workflow for Azure Static Web Apps --- .gitea/workflows/deploy.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..2044e1c --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,34 @@ +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: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build + + - name: Install Azure SWA CLI + run: npm 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 }}"