commit 3f82834141b096030ea8b1aed00b9a1406f1faea parent e1c8aac38d3e7a1535b56d4e5c5558ef43c45f67 Author: Chris <chris@echoz.io> Date: Fri, 8 May 2026 15:20:44 +0200 chore: set some names for workflow jobs and steps Diffstat:
| D | .github/workflows/deploy.yaml | | | 23 | ----------------------- |
| A | .github/workflows/production.yaml | | | 28 | ++++++++++++++++++++++++++++ |
2 files changed, 28 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml @@ -1,23 +0,0 @@ -name: Deploy website - -on: - push: - branches: - - master - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - with: - submodules: true - - uses: cachix/install-nix-action@v31 - - run: nix build - - run: | - set -e - id_rsa=$(mktemp) - chmod 600 $id_rsa - echo "${{ secrets.SSH_KEY }}" > $id_rsa - rsync --delete --chmod=D755,F644 -vrLe "ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ./result/ "${{ secrets.SSH_TARGET }}:${{ secrets.SSH_WEBROOT }}" - ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.SSH_TARGET }}" cache-purge diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml @@ -0,0 +1,28 @@ +name: Production + +on: + push: + branches: + - master + +jobs: + build-deploy: + name: Build and deploy + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v6 + with: + submodules: true + - name: install nix + uses: cachix/install-nix-action@v31 + - name: build + run: nix build + - name: deploy + run: | + set -e + id_rsa=$(mktemp) + chmod 600 $id_rsa + echo "${{ secrets.SSH_KEY }}" > $id_rsa + rsync --delete --chmod=D755,F644 -vrLe "ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ./result/ "${{ secrets.SSH_TARGET }}:${{ secrets.SSH_WEBROOT }}" + ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.SSH_TARGET }}" cache-purge