Skip to content

Commit

Permalink
Editing GitHub Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Dec 21, 2024
1 parent 84b3d73 commit 7573803
Show file tree
Hide file tree
Showing 40 changed files with 5,443 additions and 3,567 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: windows-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Setup Node.js ⚙️
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install Dependencies 📦
run: |
npm ci
working-directory: .pages

- name: Build 🔧
run: |
npm run build
working-directory: .pages

- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .pages/dist
branch: gh-pages
43 changes: 0 additions & 43 deletions .github/workflows/static-pages.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .pages/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
.git
.gitignore
README.md
.env*
.editorconfig
.DS_Store
17 changes: 17 additions & 0 deletions .pages/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended'
],
parserOptions: {
parser: '@babel/eslint-parser'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}
29 changes: 29 additions & 0 deletions .pages/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Build aşaması
FROM node:18-alpine as build-stage

# Çalışma dizinini belirleme
WORKDIR /app

# Package.json ve package-lock.json dosyalarını kopyalama
COPY package*.json ./

# Bağımlılıkları yükleme
RUN npm install

# Proje dosyalarını kopyalama
COPY . .

# Projeyi build etme
RUN npm run build

# Production aşaması
FROM nginx:stable-alpine as production-stage

# Build dosyalarını nginx'e kopyalama
COPY --from=build-stage /app/dist /usr/share/nginx/html

# 80 portunu dışarı açma
EXPOSE 80

# Nginx'i başlatma
CMD ["nginx", "-g", "daemon off;"]
Loading

0 comments on commit 7573803

Please sign in to comment.