name: Build and Deploy on: push: branches: [main] pull_request: branches: [main] jobs: validate: uses: ./.github/workflows/validate.yml deploy: needs: validate runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' && github.event_name == 'push' permissions: contents: write pages: write id-token: write steps: - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '22' cache: npm - name: Install ImageMagick (brand asset prebuild) run: sudo apt-get update && sudo apt-get install -y imagemagick - name: Install dependencies run: npm ci - name: Build application run: npm run build env: VITE_APP_VERSION: ${{ github.sha }} - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist cname: mim4u.org