diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy-mdbook.yml similarity index 86% rename from .github/workflows/deploy.yml rename to .github/workflows/deploy-mdbook.yml index de52e94..2d9f5fc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy-mdbook.yml @@ -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 diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml new file mode 100644 index 0000000..f2c0e6a --- /dev/null +++ b/.github/workflows/update-flake-lock.yml @@ -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 \ No newline at end of file