This repository was archived by the owner on Dec 29, 2025. It is now read-only.
Tweak wording in options popup #24
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 API | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'latest' | |
| - name: Install dependencies | |
| working-directory: ./src/api | |
| run: npm install | |
| - name: Build API | |
| working-directory: ./src/api | |
| run: npm run build | |
| - name: Test API | |
| working-directory: ./src/api | |
| run: npm test | |
| - name: Create deployment package | |
| working-directory: ./src/api | |
| run: | | |
| mkdir -p ../../deploy/api | |
| cp -r dist/ ../../deploy/api/ | |
| cp package*.json ../../deploy/api/ | |
| cp env.example ../../deploy/api/ | |
| cd ../../deploy/api | |
| npm install --production | |
| cd ../api | |
| zip -r ../api-deployment.zip * | |
| - name: Upload deployment artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: api-deployment | |
| path: | | |
| deploy/api-deployment.zip | |
| if-no-files-found: error |