Compare commits
1 commit
149b5c8da7
...
73d88b3e54
Author | SHA1 | Date | |
---|---|---|---|
73d88b3e54 |
1 changed files with 8 additions and 1 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -27,19 +27,26 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
nix run .#cache watch &
|
||||||
nix build --max-jobs 12 --cores 12
|
nix build --max-jobs 12 --cores 12
|
||||||
|
kill %1
|
||||||
nix run .#cache push
|
nix run .#cache push
|
||||||
|
|
||||||
- name: Run Checks
|
- name: Run Checks
|
||||||
run: nix flake check
|
run: |
|
||||||
|
nix run .#cache watch &
|
||||||
|
nix flake check
|
||||||
|
kill %1
|
||||||
|
|
||||||
- name: Deploy Docs
|
- name: Deploy Docs
|
||||||
if: success() && github.ref == 'refs/heads/main'
|
if: success() && github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
|
nix run .#cache watch &
|
||||||
mkdir ~/.ssh/
|
mkdir ~/.ssh/
|
||||||
echo -e "Host lindberg-webapps.backplane.net.qo.is\n StrictHostKeyChecking no" >> ~/.ssh/config
|
echo -e "Host lindberg-webapps.backplane.net.qo.is\n StrictHostKeyChecking no" >> ~/.ssh/config
|
||||||
(umask 0077 && printf "%s\n" "${{ secrets.SSH_DEPLOY_KEY }}" > ~/.ssh/id_ed25519)
|
(umask 0077 && printf "%s\n" "${{ secrets.SSH_DEPLOY_KEY }}" > ~/.ssh/id_ed25519)
|
||||||
# Remote build might be neccessary due to non-wheel nix users signing restrictions.
|
# Remote build might be neccessary due to non-wheel nix users signing restrictions.
|
||||||
# However, the build should come from the cache anyway.
|
# However, the build should come from the cache anyway.
|
||||||
nix develop --command deploy --skip-checks --remote-build .#lindberg-webapps.\"docs-ops.qo.is\"
|
nix develop --command deploy --skip-checks --remote-build .#lindberg-webapps.\"docs-ops.qo.is\"
|
||||||
|
kill %1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue