Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
name: Build and Deploy

env:
CI: false
GITHUB_USERNAME: ${{ github.repository_owner }}
REACT_APP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This is automatically set by Github Actions
REACT_APP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USE_GITHUB_DATA: "true"

on:
push:
branches:
- master
- main
schedule:
- cron: "0 12 * * 1" # see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events
- cron: "0 12 * * 1"

jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
persist-credentials: false
node-version: "20"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Install and Build 🔧 # Build the Project
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This is provided by GitHub.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.
folder: dist
branch: gh-pages
28 changes: 14 additions & 14 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Check Format

on:
push:
pull_request:
branches:
- master
branches:
- main

jobs:
check-format:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v2-beta
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '12'

- name: Install Prettier
run: npm install -g prettier
node-version: "20"
cache: "npm"

- name: Check Format
run: |
prettier -c "./**/*.{js,css,json}"
- name: Install dependencies
run: npm ci

- name: Check format
run: npm run check-format
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
# testing
/coverage
/build


/dist
# misc
.DS_Store
.env
Expand Down
54 changes: 54 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#6c63ff" />
<meta
name="description"
content="Azhar Arshad - Mid-level Front-End / Full Stack Developer portfolio focused on React, TypeScript, Next.js, Vue.js and production web platforms."
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png?v8=qAJ44G5Bm7"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png?v8=qAJ44G5Bm7"
/>
<link
rel="mask-icon"
href="/safari-pinned-tab.svg?v8=qAJ44G5Bm7"
color="#885bd5"
/>
<link rel="shortcut icon" href="/favicon.ico?v8=qAJ44G5Bm7" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png?v8=qAJ44G5Bm7"
/>
<link rel="manifest" href="/manifest.json" />
<meta name="msapplication-TileColor" content="#603cba" />
<meta property="og:title" content="Azhar Arshad Portfolio" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://axharfolio.live/" />
<meta
property="og:description"
content="Mid-level Front-End / Full Stack Developer portfolio for Azhar Arshad."
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/FortAwesome/Font-Awesome@5.13.0/css/all.min.css"
/>
<title>Azhar Arshad | Portfolio</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.js"></script>
</body>
</html>
Loading
Loading