Skip to content

Commit

Permalink
Add slides
Browse files Browse the repository at this point in the history
  • Loading branch information
lancelet committed Sep 25, 2024
1 parent ac4dd80 commit 4829f91
Show file tree
Hide file tree
Showing 7 changed files with 4,020 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish GH Pages
on:
push:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.5.1
- name: Build site
run: |
pushd slides
npm install && npm run build
popd
- name: Upload GitHub pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: "slides/dist/"
- name: Deploy to GitHub pages
uses: actions/deploy-pages@v4
39 changes: 39 additions & 0 deletions slides/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions slides/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};

outputs = {
systems,
nixpkgs,
...
} @ inputs: let
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
in {
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
buildInputs = [
pkgs.nodejs

# You can set the major version of Node.js to a specific one instead
# of the default version
# pkgs.nodejs-22_x

# It is possible to use bun instead of node.
# pkgs.bun

# Optionally, you can add yarn or pnpm for package management for node.
# pkgs.nodePackages.pnpm
# pkgs.yarn

#pkgs.nodePackages.typescript
#pkgs.nodePackages.typescript-language-server
];
};
});
};
}
Loading

0 comments on commit 4829f91

Please sign in to comment.