Skip to content

Commit b2a5da3

Browse files
committed
Initial Anlık Haber subdomain app
0 parents  commit b2a5da3

178 files changed

Lines changed: 14296 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/deploy.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy Haber to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
- name: Install, build, and upload site
20+
uses: withastro/action@v6
21+
env:
22+
PUBLIC_SITE_URL: https://haber.sametbasbug.dev
23+
PUBLIC_NEWS_SITE_URL: https://haber.sametbasbug.dev
24+
PUBLIC_MAIN_SITE_URL: https://sametbasbug.dev
25+
PUBLIC_NEWS_SUBDOMAIN_ENABLED: 'true'
26+
with:
27+
node-version: 24
28+
29+
deploy:
30+
needs: build
31+
runs-on: ubuntu-latest
32+
environment:
33+
name: github-pages
34+
url: ${{ steps.deployment.outputs.page_url }}
35+
steps:
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v5

‎.gitignore‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/
25+
26+
# briefing runtime artifacts
27+
briefing/*/
28+
briefing/*/*.md
29+
!briefing/sources.json
30+
31+
# news pipeline runtime artifacts
32+
news_pipeline/.venv/
33+
news_pipeline/data/*
34+
!news_pipeline/data/.gitkeep
35+
!news_pipeline/data/README.md
36+
!news_pipeline/data/raw/.gitkeep
37+
!news_pipeline/data/normalized/.gitkeep
38+
!news_pipeline/data/queue/.gitkeep
39+
!news_pipeline/data/logs/.gitkeep
40+
!news_pipeline/data/published/.gitkeep
41+
42+
# auto-generated news drafts
43+
src/content/anlikHaber/_drafts/

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# haber-project
2+
3+
Anlık Haber yüzeyinin bağımsız subdomain uygulaması.
4+
5+
Hedef yayın adresi: `https://haber.sametbasbug.dev`

‎astro.config.mjs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
import sitemap from '@astrojs/sitemap';
4+
5+
// https://astro.build/config
6+
export default defineConfig({
7+
site: process.env.PUBLIC_SITE_URL || 'https://haber.sametbasbug.dev',
8+
integrations: [sitemap()],
9+
});

0 commit comments

Comments
 (0)