From 6b736805bc569ba1a5d4f3b1501ffad5521714f1 Mon Sep 17 00:00:00 2001 From: Tim Sutton Date: Sat, 16 Dec 2023 22:10:49 +0200 Subject: [PATCH] Trying to push docs with workflow --- .github/workflows/nix-build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml index c5438b84..c145d01d 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml @@ -24,6 +24,14 @@ jobs: nix_path: nixpkgs=channel:nixos-unstable - uses: DeterminateSystems/magic-nix-cache-action@v2 - run: nix-shell --run "./english_build.sh" + - name: Commit files + run: | + mv ./docs/output/html/en /tmp/en + cd /tmp/en + git init . + git config --local user.email "test@test.com" + git config --local user.name "Test" + git commit -a -m "Update docs" - uses: ad-m/github-push-action@master with: # Token for the repo @@ -35,5 +43,5 @@ jobs: force: true # We have to push from the folder where files were generated. # Same were the new repo was initialized in the previous step - directory: ./docs/output/html/en + directory: /tmp/en