1
Fork 0

github pages

This commit is contained in:
Hadeed 2024-06-30 20:41:32 +05:00
parent c7d2e66d27
commit f1ced553c4
4 changed files with 56 additions and 0 deletions

44
.github/workflows/vite_deploy.yaml vendored Normal file
View file

@ -0,0 +1,44 @@
name: Deploy static content to Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# Frontend Mentor - Blog preview card solution
This is a solution to the [Blog preview card challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/blog-preview-card-ckPaj01IcS). Frontend Mentor challenges help you improve your coding skills by building realistic projects.

View file

@ -1,5 +1,9 @@
{ {
"type": "module", "type": "module",
"scripts": {
"dev": "vite --open",
"build": "vite build"
},
"devDependencies": { "devDependencies": {
"prettier": "^3.3.2", "prettier": "^3.3.2",
"prettier-plugin-css-order": "^2.1.2", "prettier-plugin-css-order": "^2.1.2",

5
vite.config.js Normal file
View file

@ -0,0 +1,5 @@
import { defineConfig } from "vite";
export default defineConfig({
base: "/fem-blog-preview-card/",
});