if you've just built a script for pages and Tangled sites comes along
0
mirror.yml
1# .tangled/workflows/mirror.yml
2when:
3 - event: ["push"]
4 branch: ["main"]
5
6engine: "nixery"
7
8clone:
9 depth: 0
10
11dependencies:
12 nixpkgs:
13 - git
14
15steps:
16 - name: "Mirror to a GitHub Repository in the branch mirror/main to use for GitHub pages"
17 command: |
18 git fetch --unshallow || true
19 git remote add github https://x-access-token:GITHUB_TOKEN@github.com/your-user/your-repo.git
20 git push github HEAD:refs/heads/mirror/main --force