Skip to content

Commit

Permalink
more changes needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuball committed Dec 24, 2024
1 parent 7c2ceac commit 0b16635
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ jobs:
deploy:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
id-token: write
pages: write
Expand All @@ -14,7 +17,8 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/book/
- if: ${{ github.ref == 'refs/heads/main' }}
- id: deployment
if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/deploy-pages@v4
name: Deploy to GitHub Pages
'on':
Expand Down
5 changes: 5 additions & 0 deletions cells/repository/configs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ in
id-token = "write";
pages = "write";
};
environment = {
name = "github-pages";
url = "\${{ steps.deployment.outputs.page_url }}";
};
steps = [
{ uses = "actions/checkout@v4"; }
{ uses = "nixbuild/nix-quick-install-action@v29"; }
Expand All @@ -46,6 +50,7 @@ in
}
{
"if" = "\${{ github.ref == 'refs/heads/main' }}";
id = "deployment";
uses = "actions/deploy-pages@v4";
}
];
Expand Down

0 comments on commit 0b16635

Please sign in to comment.