This repository was archived by the owner on Jan 14, 2026. It is now read-only.
DEV-61: Add internationalization support (#6) #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: ['.github/**'] | |
| env: | |
| AZURE_WEBAPP_NAME: pera | |
| AZURE_WEBAPP_PACKAGE_PATH: ./build/standalone | |
| NODE_VERSION: '22.x' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-deploy: | |
| name: Build and Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'npm' | |
| - name: npm install, build, and test | |
| run: | | |
| npm install | |
| npm run build | |
| npm run test --if-present | |
| mv ./build/static ./build/standalone/build | |
| mv ./public ./build/standalone | |
| - name: Deploy to Azure App Service | |
| id: deploy-to-webapp | |
| uses: azure/webapps-deploy@v3 | |
| with: | |
| app-name: ${{ env.AZURE_WEBAPP_NAME }} | |
| publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | |
| package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} |