refactor: unify featured project data model and fix promo z-index #97
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 Docusaurus to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main # Sadece main branch'e push olunca çalışacak | |
| workflow_dispatch: # Manuel çalıştırmak istersen | |
| jobs: | |
| build-deploy: | |
| name: Build and Deploy Docusaurus | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. Kaynak kodu çek | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # 2. Node.js kur | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "npm" | |
| # 3. Bağımlılıkları yükle | |
| - name: Install dependencies | |
| run: npm ci | |
| # 4. Projeyi build et | |
| - name: Build Docusaurus site | |
| run: npm run build | |
| # CNAME dosyasını build/ içine kopyala | |
| - run: cp CNAME build/CNAME | |
| # 5. GitHub Pages'e deploy et | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GH_PAT_PAGES }} | |
| publish_dir: ./build | |
| publish_branch: gh-pages | |
| force_orphan: true |