From 26d3459ea062e53bef1c6a1b7976cdee638628d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 13 Aug 2023 16:39:46 +0100 Subject: [PATCH] Swap the visual order of build steps as publish needs to be quickly accessible --- .gitea/workflows/build.yaml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 511da93..aca24fb 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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/ \ No newline at end of file + 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