Skip to content

Commit

Permalink
Better GH Pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Jun 5, 2024
1 parent d5211c1 commit 148e842
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ jobs:
- run: typst fonts
env:
TYPST_FONT_PATHS: fonts
- run: which cargo

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
# upload entire directory
path: './_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
4 changes: 2 additions & 2 deletions _includes/vo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Aside } from "../_components/Aside.tsx";
import { Preview } from "../_components/Preview.tsx";

export const layout = "index.tsx";
export default function (data: Lume.Data, helpers: Lume.Helpers) {
export default function (data: Lume.Data) {
return (
<>
<Aside vos={data.page.data.vos} data={data} hide />
<Aside data={data} hide />
<main className="flex-1">
<Preview src={data.content as string} />
</main>
Expand Down

0 comments on commit 148e842

Please sign in to comment.