Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
abce7a1865
commit
0e63f3de07
3 changed files with 15 additions and 3 deletions
6
.github/workflows/deploy.yaml
vendored
6
.github/workflows/deploy.yaml
vendored
|
@ -21,9 +21,11 @@ jobs:
|
|||
with:
|
||||
deno-version: v1.x
|
||||
- name: Build site
|
||||
run: deno task build
|
||||
run: |
|
||||
deno task build
|
||||
cp src/static/.domains _site
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
- name: Deploy to Codeberg Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: github.ref == 'refs/heads/master'
|
||||
with:
|
||||
|
|
10
deno.json
10
deno.json
|
@ -15,5 +15,13 @@
|
|||
},
|
||||
"exclude": [
|
||||
"./_site"
|
||||
]
|
||||
],
|
||||
"deploy": {
|
||||
"project": "bffcfd12-e23c-4402-b99a-335185e60640",
|
||||
"exclude": [
|
||||
"**/node_modules"
|
||||
],
|
||||
"include": [],
|
||||
"entrypoint": "serve.ts"
|
||||
}
|
||||
}
|
|
@ -23,6 +23,7 @@ export default function () {
|
|||
.mergeKey("extra_head", "stringArray")
|
||||
.use(transformImages())
|
||||
.copy("static", ".")
|
||||
.copy(".domains")
|
||||
.use(minifyHTML({
|
||||
extensions: [".css", ".html", ".js"]
|
||||
}));
|
||||
|
@ -40,5 +41,6 @@ export default function () {
|
|||
});
|
||||
|
||||
site.copy([".jpg", ".webp", ".png"]);
|
||||
site.copy("static/.peepeepoopoo");
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue