From 7909828eba90410ed08e2fb72a5e87bdb79b66dc Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:12:28 +0200 Subject: [PATCH 01/11] chore: fix release action --- .github/workflows/check.yml | 9 +++++++++ .github/workflows/deploy-docs.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 60dd54b..1b289e9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -53,3 +53,12 @@ jobs: - name: 🛠️ Build run: pnpm docs:build + + # TODO: FOR TESTING ONLY, REMOVE THIS + - name: Deploy + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + password: ${{ secrets.SSH_PASSWORD }} + script: node -v diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 4fd17ce..e399f3e 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -30,7 +30,7 @@ jobs: run: pnpm docs:build - name: Deploy - uses: appleboy/ssh-action@v0.1.6 + uses: appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} From 45dea3a7a904deb8db9548a309ffa4fcb99d2258 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:12:47 +0200 Subject: [PATCH 02/11] update cmd --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1b289e9..b17f7c7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -61,4 +61,4 @@ jobs: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} password: ${{ secrets.SSH_PASSWORD }} - script: node -v + script: node -v && whoami From 0d6c851d9dc79d77da5b56484506b361b600d0d5 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:14:11 +0200 Subject: [PATCH 03/11] wip --- .github/workflows/check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b17f7c7..52356b5 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -55,10 +55,10 @@ jobs: run: pnpm docs:build # TODO: FOR TESTING ONLY, REMOVE THIS - - name: Deploy + - name: Debug uses: appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} password: ${{ secrets.SSH_PASSWORD }} - script: node -v && whoami + script: whoami From 76a3da2fafef46ea1c1aba9522414787de28ef59 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:20:36 +0200 Subject: [PATCH 04/11] wip --- .github/workflows/check.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 52356b5..af5cf05 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -54,6 +54,10 @@ jobs: - name: 🛠️ Build run: pnpm docs:build + # TODO: FOR TESTING ONLY, REMOVE THIS + - name: Debug + run: ssh ${{ secrets.SSH_USERNAME }}:${{ secrets.SSH_PASSWORD }}@${{ secrets.SSH_HOST }} whoami && node -v + # TODO: FOR TESTING ONLY, REMOVE THIS - name: Debug uses: appleboy/ssh-action@v1.0.3 From 745aa915ed4a6ece67c59174f724f32f17bdd0fd Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:24:26 +0200 Subject: [PATCH 05/11] wip --- .github/workflows/check.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index af5cf05..6d6af5e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -54,10 +54,6 @@ jobs: - name: 🛠️ Build run: pnpm docs:build - # TODO: FOR TESTING ONLY, REMOVE THIS - - name: Debug - run: ssh ${{ secrets.SSH_USERNAME }}:${{ secrets.SSH_PASSWORD }}@${{ secrets.SSH_HOST }} whoami && node -v - # TODO: FOR TESTING ONLY, REMOVE THIS - name: Debug uses: appleboy/ssh-action@v1.0.3 @@ -65,4 +61,4 @@ jobs: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} password: ${{ secrets.SSH_PASSWORD }} - script: whoami + script: pwd From 15f7ceae4c0c9d8c70d01c48b976298f1eec48d3 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:26:46 +0200 Subject: [PATCH 06/11] wip --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6d6af5e..d54fa74 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -61,4 +61,4 @@ jobs: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} password: ${{ secrets.SSH_PASSWORD }} - script: pwd + script: whoami | cut -c 1-2 From b86ab67e96aaf0e58490e4867acae46f16122c89 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:30:58 +0200 Subject: [PATCH 07/11] wip --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d54fa74..3aeed99 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -61,4 +61,4 @@ jobs: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} password: ${{ secrets.SSH_PASSWORD }} - script: whoami | cut -c 1-2 + script: echo $SHELL From b8c68cfebc993e057ba5ceea763c663870188c7e Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:46:53 +0200 Subject: [PATCH 08/11] wip --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3aeed99..6393702 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -61,4 +61,4 @@ jobs: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} password: ${{ secrets.SSH_PASSWORD }} - script: echo $SHELL + script: echo $PATH From 3f969020844c6cbf626a69a2c15a23bfbb6f0115 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:54:22 +0200 Subject: [PATCH 09/11] wip --- .github/workflows/check.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6393702..db162ed 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -54,6 +54,16 @@ jobs: - name: 🛠️ Build run: pnpm docs:build + # TODO: FOR TESTING ONLY, REMOVE THIS + - name: Configure SSH + run: | + mkdir ~/.ssh && touch ~/.ssh/known_hosts + ssh-keyscan ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts + + # TODO: FOR TESTING ONLY, REMOVE THIS + - name: Debug + run: ssh ${{ secrets.SSH_USERNAME }}:${{ secrets.SSH_PASSWORD }}@${{ secrets.SSH_HOST }} whoami && echo $PATH + # TODO: FOR TESTING ONLY, REMOVE THIS - name: Debug uses: appleboy/ssh-action@v1.0.3 @@ -61,4 +71,4 @@ jobs: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} password: ${{ secrets.SSH_PASSWORD }} - script: echo $PATH + script: whoami From 74f32930c91e79608890255d5341ff3da5b37866 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 17:55:24 +0200 Subject: [PATCH 10/11] wip --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index db162ed..56113c7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -62,7 +62,7 @@ jobs: # TODO: FOR TESTING ONLY, REMOVE THIS - name: Debug - run: ssh ${{ secrets.SSH_USERNAME }}:${{ secrets.SSH_PASSWORD }}@${{ secrets.SSH_HOST }} whoami && echo $PATH + run: ssh "${{ secrets.SSH_USERNAME }}":"${{ secrets.SSH_PASSWORD }}"@${{ secrets.SSH_HOST }} whoami && echo $PATH # TODO: FOR TESTING ONLY, REMOVE THIS - name: Debug From 7dcff82bf1e8b60c28b9e5d3e27bad4ed1b2cb10 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Wed, 1 May 2024 18:00:46 +0200 Subject: [PATCH 11/11] wip --- .github/workflows/check.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 56113c7..e88a26a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -54,16 +54,6 @@ jobs: - name: 🛠️ Build run: pnpm docs:build - # TODO: FOR TESTING ONLY, REMOVE THIS - - name: Configure SSH - run: | - mkdir ~/.ssh && touch ~/.ssh/known_hosts - ssh-keyscan ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - - # TODO: FOR TESTING ONLY, REMOVE THIS - - name: Debug - run: ssh "${{ secrets.SSH_USERNAME }}":"${{ secrets.SSH_PASSWORD }}"@${{ secrets.SSH_HOST }} whoami && echo $PATH - # TODO: FOR TESTING ONLY, REMOVE THIS - name: Debug uses: appleboy/ssh-action@v1.0.3 @@ -71,4 +61,4 @@ jobs: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} password: ${{ secrets.SSH_PASSWORD }} - script: whoami + script: echo $SHELL && node -v