Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
breeze256 committed Dec 28, 2024
1 parent 7995570 commit efcbcc7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: false
- name: Install Nix Package Manager
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-24.11
- name: Build Documentation
- name: Build documentation
run: nix develop --command bash -c "mdbook build"
- name: Upload Pages Artifact
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./book
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: update-flake-lock
on:
workflow_dispatch: # Allows manual triggering.
schedule:
- cron: '0 0 * * 0' # Runs weekly on Sunday at 00:00.

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-24.11
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "Update flake.lock" # Title of PR to be created.
pr-labels: | # Labels to be set on the PR.
dependencies
automated

0 comments on commit efcbcc7

Please sign in to comment.