Skip to content

Commit

Permalink
Trying to push docs with workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Dec 16, 2023
1 parent 37ba22d commit 6b73680
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 6b73680

Please sign in to comment.