diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml index 31cb1b2a..e577afd0 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml @@ -1,4 +1,4 @@ -name: 📖 Documentation +name: 📖 Test Documentation on: pull_request: push: @@ -14,6 +14,7 @@ on: workflow_dispatch: jobs: + # Runs when we create or update a PR tests: runs-on: ubuntu-latest steps: @@ -24,6 +25,16 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@v2 - run: nix-shell --run "./english_build.sh" + # Runs when we merge a PR + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: DeterminateSystems/magic-nix-cache-action@v2 + - run: nix-shell --run "./english_build.sh" #jobs: # tests: