Fix iOS icon theme switching issue #31
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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout ποΈ | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js π¦ | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "18" | |
| cache: "npm" | |
| - name: Install dependencies π₯ | |
| run: npm ci | |
| - name: Run linting π | |
| run: npm run lint --if-present | |
| - name: Run type checking π§ | |
| run: npm run type-check --if-present | |
| - name: Build application π¨ | |
| run: npm run build | |
| env: | |
| NODE_ENV: production | |
| - name: Setup Pages π | |
| uses: actions/configure-pages@v3 | |
| with: | |
| static_site_generator: next | |
| - name: Upload artifact π€ | |
| uses: actions/upload-pages-artifact@v2 | |
| with: | |
| path: ./out | |
| - name: Deploy to GitHub Pages π | |
| id: deployment | |
| if: github.ref == 'refs/heads/main' | |
| uses: actions/deploy-pages@v2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| # Permissions needed for GitHub Pages deployment | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow one concurrent deployment | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true |