/
spirzen
/
it-code-examples
Обзор
Документация
Войти
/
spirzen
/
it-code-examples
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/deploy.yml
45 строк
1 KB
Spirzen
Path fixes
07 июн 2026, 03:17
07 июн 2026, 03:17
72d0f88
Код
Авторство
О чём код?
name: Deploy to GitHub Pages on: push: branches: [main, master] workflow_dispatch: permissions: contents: read pages: write id-token: write concurrency: group: pages cancel-in-progress: true jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 cache: npm - run: npm ci - run: npm run build env: # Custom domain code.spirzen.ru → BASE=/ (см. README «URL и пути») # Неверный BASE=/it-code-examples/ ломает CSS и /e/… на домене. IT_CODE_EXAMPLES_SITE: https://code.spirzen.ru IT_CODE_EXAMPLES_BASE: / - uses: actions/upload-pages-artifact@v3 with: path: dist deploy: needs: build runs-on: ubuntu-latest environment: name: github-pages url: https://code.spirzen.ru/ steps: - id: deployment uses: actions/deploy-pages@v4