Skip to content

feat(legal): add privacy, terms, and cookie policy pages #93

feat(legal): add privacy, terms, and cookie policy pages

feat(legal): add privacy, terms, and cookie policy pages #93

Workflow file for this run

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