updates #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: CI Pipeline | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run tests | |
| run: npm test | |
| - name: Build Electron app | |
| run: npm run build:electron | |
| - name: Deploy WebExtension | |
| run: npm run deploy:webextension | |
| - name: Deploy Mobile App | |
| run: npm run deploy:mobile | |
| - name: Run OAuth tests | |
| run: npm run test:oauth | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: build-artifacts | |
| path: dist/ | |
| deploy: | |
| name: Deploy Applications | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Deploy Gitmark | |
| run: npm run deploy:gitmark | |
| - name: Deploy Settings | |
| run: npm run deploy:settings | |
| - name: Deploy Editor | |
| run: npm run deploy:editor | |
| - name: Deploy i18n | |
| run: npm run deploy:i18n |