Skip to content

Commit

Permalink
[deploy] trigger build
Browse files Browse the repository at this point in the history
  • Loading branch information
machine-moon committed Jan 3, 2025
1 parent 9acb809 commit 72ec973
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 27 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: "18"

# Install dependencies
- name: Install dependencies
Expand All @@ -27,6 +27,10 @@ jobs:
- name: Build
run: yarn build

# Test project
- name: Test
run: yarn test

# Deploy to target repo
- name: Deploy
env:
Expand All @@ -35,4 +39,4 @@ jobs:
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
npx gh-pages -d dist -r https://${GITHUB_TOKEN}@github.com/t-ibrahimm/t-ibrahimm.github.io.git
npx gh-pages -d dist -r https://${GITHUB_TOKEN}@github.com/t-ibrahimm/t-ibrahimm.github.io.git
26 changes: 12 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tarek Ibrahim Personal Portfolio</title>
<!--Title of the website tab -->
</head>

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tarek Ibrahim Personal Portfolio</title>
<!--Title of the website tab -->
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>

</html>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
"type": "module",
"homepage": "https://t-ibrahimm.github.io/t-ibrahimm.github.io",
"scripts": {
"serve": "vite preview ",
"dev": "vite",
"predeploy": "yarn build",
"deploy": "gh-pages -d dist",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write .",
"test": "jest ",
"preview": "vite preview "
"test": "jest",
"test:watch": "jest --watch",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"format": "prettier --check .",
"check": "yarn lint && yarn format && yarn test",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
"format:fix": "prettier --write .",
"fix": "yarn lint:fix && yarn format:fix",
"predeploy": "yarn fix && yarn build",
"deploy": "git add . && git commit --allow-empty -m \"[deploy] trigger build\" && git push origin master"
},
"dependencies": {
"@emotion/react": "^11.11.4",
Expand Down Expand Up @@ -66,4 +71,4 @@
],
"author": "Tarek Ibrahim <[email protected]>",
"license": "MIT"
}
}
8 changes: 4 additions & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig({
plugins: [react()],
base: '/',
});
base: "/",
});

0 comments on commit 72ec973

Please sign in to comment.