Fix yazzy integration (maybe) (#13)
* Remove yazzy url from renderer * Print yazzy url during build * Add yazzy url to action definition
This commit is contained in:
parent
740191e050
commit
549248a50e
3 changed files with 6 additions and 3 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
|
@ -11,6 +11,9 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 */6 * * *" # At minute 0 past every 6th hour.
|
- cron: "0 */6 * * *" # At minute 0 past every 6th hour.
|
||||||
|
|
||||||
|
env:
|
||||||
|
YAZZY_URL: ${{ env.YAZZY_URL }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pages: write
|
pages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
|
||||||
|
|
@ -83,12 +83,14 @@ const finishBuild: () => void = async () => {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const yazzyUrl = process.env.YAZZY_URL;
|
||||||
|
process.stdout.write(`\nUsing yazzy url: "${yazzyUrl}"\n`);
|
||||||
// generate the static HTML output from our template renderer
|
// generate the static HTML output from our template renderer
|
||||||
const output = render({
|
const output = render({
|
||||||
data: sortedFeeds,
|
data: sortedFeeds,
|
||||||
errors: errors,
|
errors: errors,
|
||||||
info: buboInfo,
|
info: buboInfo,
|
||||||
yazzyUrl: process.env.YAZZY_URL,
|
yazzyUrl
|
||||||
});
|
});
|
||||||
|
|
||||||
// write the output to public/index.html
|
// write the output to public/index.html
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,6 @@ import { readFile } from "node:fs/promises";
|
||||||
import { getRelativeTime } from "@feelinglovelynow/get-relative-time";
|
import { getRelativeTime } from "@feelinglovelynow/get-relative-time";
|
||||||
import type { Feeds, JSONValue } from "./@types/bubo";
|
import type { Feeds, JSONValue } from "./@types/bubo";
|
||||||
|
|
||||||
const yazzyUrl = process.env.YAZZY_URL;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Global filters for my Nunjucks templates
|
* Global filters for my Nunjucks templates
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue