Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Franceschino committed Jul 1, 2024
1 parent ca34877 commit c60792f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ jobs:
path: book
token: ${{secrets.PUSH_HACSPEC_GITHUB_TOKEN}}

- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main

- name: Configure git
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Patch and push `README.md` in `hacspec.github.io`
run: |
Expand All @@ -90,9 +89,12 @@ jobs:
- name: Regenerate and push the book
run: |
nix build hax#hax-book -o result-hax-book
cp --no-preserve=mode -r result-hax-book hax-book
mv book/.git hax-book/.git
nix build ./hax#hax-book -o result-hax-book
rsync -r --no-perms --chown=$(whoami):$(whoami) "$(realpath result-hax-book)" hax-book
cp --no-preserve=mode,ownership -r result-hax-book hax-book
chmod ugo+wr -R hax-book
mv book/.git hax-book-git
mv hax-book-git hax-book/.git
cd hax-book
Expand Down

0 comments on commit c60792f

Please sign in to comment.