Swap the visual order of build steps as publish needs to be quickly accessible
build and publish / Publish (push) Successful in 1m57s Details
build and publish / Check config (push) Successful in 2m4s Details

This commit is contained in:
Cyryl Płotnicki 2023-08-13 16:39:46 +01:00
parent af8d341f86
commit 26d3459ea0
1 changed files with 16 additions and 15 deletions

View File

@ -4,20 +4,6 @@ on: push
env:
DEV_SHELL_NAME: CI
jobs:
Check config:
runs-on: flakes-action
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Metadata
run: |
nix flake metadata
- name: Statix
run: |
nix develop -c statix check
- name: Flake check
run: |
nix flake check
Publish:
runs-on: flakes-action
steps:
@ -34,4 +20,19 @@ jobs:
EOF
chmod 400 ~/.ssh/id_ed25519
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILqDeXcIQwLXxuueu9KTC6y6NPUUzDRdF4Q5NUk+nFwt upload@blog" > ~/.ssh/id_ed25519.pub
nix develop -c rsync -avz -e 'ssh -o StrictHostKeyChecking=accept-new' public/ blog@blog.cyplo.net:/var/www/blog/
nix develop -c rsync -avz -e 'ssh -o StrictHostKeyChecking=accept-new' public/ blog@blog.cyplo.net:/var/www/blog/
Check config:
runs-on: flakes-action
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Metadata
run: |
nix flake metadata
- name: Statix
run: |
nix develop -c statix check
- name: Flake check
run: |
nix flake check