From 1fa2932b828bce033f7f8618ef0950a65d3dc4c8 Mon Sep 17 00:00:00 2001 From: Jermeiah S Date: Fri, 20 Jun 2025 14:19:42 -0400 Subject: [PATCH] feature automated deployment now working! [deploy] in order to get it working make sure [deploy] is inside the commit title --- .forgejo/workflows/push.yaml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.forgejo/workflows/push.yaml b/.forgejo/workflows/push.yaml index ecba311..b5a7a36 100644 --- a/.forgejo/workflows/push.yaml +++ b/.forgejo/workflows/push.yaml @@ -1,23 +1,25 @@ on: [push] jobs: - check: - runs-on: nix - steps: - - uses: https://code.forgejo.org/actions/checkout@v3 - - run: nix flake check . + # check: + # runs-on: nix + # steps: + # - uses: https://code.forgejo.org/actions/checkout@v3 + # - run: nix flake check . deploy: runs-on: nix - needs: check - if: contains(github.event.head_commit.message, 'deploy:') + # needs: check + if: contains(github.event.head_commit.message, '[deploy]') steps: - uses: https://code.forgejo.org/actions/checkout@v3 - - run: nix develop - name: Setup SSH key run: | mkdir -p ~/.ssh - echo "$SSHKEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa + chmod 700 ~/.ssh + echo "$SSHKEY" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" >> ~/.ssh/config + env: SSHKEY: ${{ secrets.SSHKEY }} - - run: deploy + - run: nix develop .#default -c deploy --skip-checks