Skip to content

Commit 7d3a327

Browse files
committed
2 parents cd22177 + ab9a28b commit 7d3a327

File tree

7 files changed

+39
-780
lines changed

7 files changed

+39
-780
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,70 @@
1-
# Sample workflow for building and deploying a VitePress site to GitHub Pages
2-
#
31
name: Deploy VitePress site to Pages
42

53
on:
6-
# Runs on pushes targeting the `release` branch.
74
push:
85
branches: [master]
9-
# Runs on pull_request targeting the `release` branch.
106
pull_request:
117
branches: [master]
12-
13-
# Allows you to run this workflow manually from the Actions tab
148
workflow_dispatch:
159

16-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1710
permissions:
1811
contents: read
1912
pages: write
2013
id-token: write
2114

22-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2415
concurrency:
2516
group: pages
2617
cancel-in-progress: false
2718

2819
jobs:
29-
# Build job
3020
build:
3121
runs-on: ubuntu-latest
22+
environment: github-pages
3223
steps:
3324
- name: Checkout
3425
uses: actions/checkout@v4
3526
with:
36-
fetch-depth: 0 # Not needed if lastUpdated is not enabled
37-
# - uses: pnpm/action-setup@v3 # Uncomment this block if you're using pnpm
38-
# with:
39-
# version: 9 # Not needed if you've set "packageManager" in package.json
40-
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
41-
- name: Setup Node
27+
fetch-depth: 0
28+
29+
- name: Setup Node.js
4230
uses: actions/setup-node@v4
4331
with:
4432
node-version: 20
45-
cache: npm # or pnpm / yarn
33+
cache: npm # or pnpm / yarn
34+
4635
- name: Setup Pages
4736
uses: actions/configure-pages@v4
37+
38+
- name: Create .env file
39+
run: |
40+
echo "VITEPRESS_BASE_URL=${{ vars.VITEPRESS_BASE_URL }}" >> .env
41+
echo "VITEPRESS_BASE=${{ vars.VITEPRESS_BASE }}" >> .env
42+
43+
# Debug .env content
44+
- name: Verify .env file contents
45+
run: cat .env
46+
4847
- name: Install dependencies
4948
run: npm ci # or pnpm install / yarn install / bun install
50-
#- name: Set github env params to env file
51-
# uses: c-py/action-dotenv-to-setenv@v5
52-
# with:
53-
# env-file: .env
54-
- name: 'Create env file'
55-
run: touch .env
56-
- name: Creating .env file
57-
uses: fmunirdev/[email protected]
58-
env:
59-
VITEPRESS_BASE_URL: 'value'
60-
VITEPRESS_BASE: 'value'
61-
with:
62-
variableName: VITEPRESS_BASE_URL,VITEPRESS_BASE
49+
50+
# - name: Create .env file
51+
# run: |
52+
# echo "VITEPRESS_BASE_URL=${{ secrets.VITEPRESS_BASE_URL }}" >> .env
53+
# echo "VITEPRESS_BASE=${{ secrets.VITEPRESS_BASE }}" >> .env
54+
55+
# # Debug .env content
56+
# - name: Verify .env file contents
57+
# run: cat .env
58+
59+
# Build with VitePress
6360
- name: Build with VitePress
6461
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
62+
6563
- name: Upload artifact
6664
uses: actions/upload-pages-artifact@v3
6765
with:
6866
path: docs/.vitepress/dist
6967

70-
# Deployment job
7168
deploy:
7269
environment:
7370
name: github-pages
@@ -78,4 +75,4 @@ jobs:
7875
steps:
7976
- name: Deploy to GitHub Pages
8077
id: deployment
81-
uses: actions/deploy-pages@v4
78+
uses: actions/deploy-pages@v4

.husky/post-merge

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

docs/.vitepress/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import dotenv from 'dotenv';
22
import { defineConfig, HeadConfig } from 'vitepress'
3-
//const dotenv = require('dotenv');
43

54
dotenv.config();
65

docs/comfortjob/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ type: "type"
77
site_name: "Comfort HRM"
88
image: "https://comforthrm.com/assets/images/seo.png"
99
card: "article"
10-
1110
---
1211

1312
# Comfort Job Documentation

docs/index.md

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
---
2+
23
layout: home
34

5+
title: "Comfort HRM"
6+
description: "Comfort index description."
7+
keywords: "Comfort index keywords."
8+
url: "/"
9+
type: "type"
10+
site_name: "Comfort HRM"
11+
image: "https://comforthrm.com/assets/images/seo.png"
12+
card: "website"
13+
414
# Hero section
515
hero:
616
name: Comfort HRM
@@ -32,30 +42,6 @@ features:
3242
title: Stylish and cool
3343
details: Lorem ipsum...
3444

35-
# Meta property
36-
head:
37-
- - meta
38-
- property: og:type
39-
content: website
40-
- - meta
41-
- property: og:title
42-
content: Comfort HRM
43-
- - meta
44-
- property: og:image
45-
content: https://user-images.githubusercontent.com/62628408/200117602-4b274d14-b1b2-4f61-8dcd-9f9482c677a0.png
46-
- - meta
47-
- property: og:url
48-
content: https://vitejs.dev/blog/announcing-vite3
49-
- - meta
50-
- name: title
51-
content: Comfort HRM
52-
- - meta
53-
- name: twitter:card
54-
content: https://user-images.githubusercontent.com/62628408/200117602-4b274d14-b1b2-4f61-8dcd-9f9482c677a0.png
55-
- - link
56-
- rel: icon
57-
type: image/svg
58-
href: logo.png
5945
---
6046

6147
<!-- Custom home layout -->

0 commit comments

Comments
 (0)