From 6694b65c8260d38df5bd60644eeaf7aa977f1ac7 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 6 Feb 2023 22:02:44 +0300 Subject: [PATCH] dev: should reduce CI build times --- .github/workflows/cachix.yml | 8 +++++--- .github/workflows/check.yml | 4 ++-- .github/workflows/manual.yml | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml index 47bd48fd..624e8c97 100644 --- a/.github/workflows/cachix.yml +++ b/.github/workflows/cachix.yml @@ -3,10 +3,12 @@ name: build-and-cache on: workflow_dispatch: push: + branches: + - main paths-ignore: - - '**/README.md' - - '**/.gitignore' - - '**/assets' + - '.github/**' + - './assets/**' + - '.gitignore' jobs: nix: diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4dd7870b..cea124a2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,10 +1,10 @@ -name: "Pull request" +name: "Check validity of flakes" on: pull_request: + workflow_dispatch: push: branches: - main - workflow_dispatch: jobs: nix-flake-check: runs-on: ubuntu-latest diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index ff3153c2..9dbd0b76 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -1,5 +1,6 @@ name: Github Pages docs on: + workflow_dispatch: push: branches: - main @@ -25,7 +26,7 @@ jobs: uses: cachix/install-nix-action@v18 - name: Build run: | - nix build '.#docs-html' + nix build '.#docs' cp -r result/share/doc/neovim-flake public - name: Deploy uses: peaceiris/actions-gh-pages@v3