Attempt 1 on adding site generation to runner
Some checks failed
Deploy Blog to Folder / deploy (push) Failing after 2s
Some checks failed
Deploy Blog to Folder / deploy (push) Failing after 2s
This commit is contained in:
@ -13,10 +13,15 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build site
|
||||||
|
run: |
|
||||||
|
cd ./src
|
||||||
|
npx @11ty/eleventy
|
||||||
|
|
||||||
- name: Deploy folder
|
- name: Deploy folder
|
||||||
run: |
|
run: |
|
||||||
echo "Cleaning old site files..."
|
echo "Cleaning old site files..."
|
||||||
rm -rf /var/sites/cy.cyper.cc/www/html/*
|
rm -rf /var/sites/cy.cyper.cc/www/html/*
|
||||||
|
|
||||||
echo "Deploying new site files from src/_site folder..."
|
echo "Deploying new site files from src/_site folder..."
|
||||||
mv ./src/_site/* /var/sites/cy.cyper.cc/www/html
|
mv ./_site/* /var/sites/cy.cyper.cc/www/html
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
src/_site/
|
||||||
@ -1,26 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<h1>Hello World!</h1>
|
|
||||||
</header>
|
|
||||||
<main>
|
|
||||||
|
|
||||||
|
|
||||||
<h2><a href="/posts/post-1/">You are stinky</a></h2>
|
|
||||||
<p><p>First post!</p>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h2><a href="/posts/post-2/">Actually very stinky</a></h2>
|
|
||||||
<p><p>Second post!</p>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</main>
|
|
||||||
<footer></footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<h1>You are stinky</h1>
|
|
||||||
</header>
|
|
||||||
<main>
|
|
||||||
<p>First post!</p>
|
|
||||||
|
|
||||||
</main>
|
|
||||||
<footer></footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<h1>Actually very stinky</h1>
|
|
||||||
</header>
|
|
||||||
<main>
|
|
||||||
<p>Second post!</p>
|
|
||||||
|
|
||||||
</main>
|
|
||||||
<footer></footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user