Skip to content

Commit 18be010

Browse files
vviswaroopViswaroop Vadlamudi
andauthored
feat: redesign website with Astro and Tailwind (#20)
Co-authored-by: Viswaroop Vadlamudi <viswaroopvadlamudi@Viswaroops-MacBook-Air.local>
1 parent 2a4e9fe commit 18be010

56 files changed

Lines changed: 7271 additions & 1847 deletions

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: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Deploy Astro site to 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+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
env:
18+
BUILD_PATH: "."
19+
20+
jobs:
21+
build:
22+
name: Build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Detect package manager
28+
id: detect-package-manager
29+
run: |
30+
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
31+
echo "manager=yarn" >> $GITHUB_OUTPUT
32+
echo "command=install" >> $GITHUB_OUTPUT
33+
echo "runner=yarn" >> $GITHUB_OUTPUT
34+
echo "lockfile=yarn.lock" >> $GITHUB_OUTPUT
35+
exit 0
36+
elif [ -f "${{ github.workspace }}/package.json" ]; then
37+
echo "manager=npm" >> $GITHUB_OUTPUT
38+
echo "command=ci" >> $GITHUB_OUTPUT
39+
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
40+
echo "lockfile=package-lock.json" >> $GITHUB_OUTPUT
41+
exit 0
42+
else
43+
echo "Unable to determine package manager"
44+
exit 1
45+
fi
46+
- name: Setup Node
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: "20"
50+
cache: ${{ steps.detect-package-manager.outputs.manager }}
51+
cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }}
52+
- name: Setup Pages
53+
id: pages
54+
uses: actions/configure-pages@v5
55+
- name: Install dependencies
56+
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
57+
working-directory: ${{ env.BUILD_PATH }}
58+
- name: Build with Astro
59+
run: |
60+
${{ steps.detect-package-manager.outputs.runner }} astro build \
61+
--site "${{ steps.pages.outputs.origin }}" \
62+
--base "${{ steps.pages.outputs.base_path }}"
63+
working-directory: ${{ env.BUILD_PATH }}
64+
- name: Upload artifact
65+
uses: actions/upload-pages-artifact@v3
66+
with:
67+
path: ${{ env.BUILD_PATH }}/dist
68+
69+
deploy:
70+
environment:
71+
name: github-pages
72+
url: ${{ steps.deployment.outputs.page_url }}
73+
needs: build
74+
runs-on: ubuntu-latest
75+
name: Deploy
76+
steps:
77+
- name: Deploy to GitHub Pages
78+
id: deployment
79+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
1-
# Ignore bundler config
2-
/vendor/bundle
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
35

4-
# Jekyll
5-
/.jekyll-cache
6-
/_site
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/

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

Gemfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)