diff --git a/.github/workflows/multi-branch-pages.yml b/.github/workflows/multi-branch-pages.yml new file mode 100644 index 000000000..8471a7166 --- /dev/null +++ b/.github/workflows/multi-branch-pages.yml @@ -0,0 +1,29 @@ +name: Publish multi-branch ZIP pages + +on: + push: + branches: + - "**" + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + publish: + uses: shielded-nate/multi-branch-pages/.github/workflows/publish-multi-branch-pages.yml@7877d18060b344723fdafd145aeeaee6ee9e7361 + with: + branch_whitelist: "*" + render_command: | + if ! command -v nix >/dev/null 2>&1; then + curl -fsSL https://install.determinate.systems/nix | sh -s -- install --no-confirm + fi + if [ -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]; then + . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh + elif [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then + . "$HOME/.nix-profile/etc/profile.d/nix.sh" + fi + nix develop --command make all-zips + render_output_dir: rendered diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index aa1f935c0..949a181b1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,8 +1,7 @@ name: Deploy Rendered Site on: - push: - branches: [ main ] + workflow_dispatch: env: CARGO_TERM_COLOR: always