Skip to content

Commit f632576

Browse files
committed
Change deployment method to github actions
1 parent 9376f38 commit f632576

5 files changed

Lines changed: 54 additions & 1 deletion

File tree

.eleventy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
module.exports = function (eleventyConfig) {
22
eleventyConfig.addPassthroughCopy("src/assets");
3+
eleventyConfig.addPassthroughCopy("src/sitemap.xml");
34
eleventyConfig.setBrowserSyncConfig({ files: './_site/assets/**/*' });
45

56
return {
67
dir: {
78
input: "src",
89
includes: "_includes",
910
layouts: "_includes/layouts",
10-
output: "docs"
11+
output: "_site"
1112
},
1213
templateFormats: ["njk", "html", "md"],
1314
htmlTemplateEngine: "njk",

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20'
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Build site
31+
run: npx @11ty/eleventy
32+
33+
- name: Setup Pages
34+
uses: actions/configure-pages@v4
35+
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: '_site'
40+
41+
- name: Deploy to GitHub Pages
42+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2+
_site/
23
.idea
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-site-verification: google97c8a2ad9760d9e5.html

docs/sitemap.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc>https://dataintelligencecrew.github.io/dbml26/</loc>
5+
<lastmod>2026-01-11</lastmod>
6+
<priority>1.0</priority>
7+
</url>
8+
</urlset>

0 commit comments

Comments
 (0)