Swap the visual order of build steps as publish needs to be quickly accessible

This commit is contained in:
Cyryl Płotnicki 2023-08-13 16:39:46 +01:00
parent af8d341f86
commit 26d3459ea0

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:
@ -35,3 +21,18 @@ jobs:
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/
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