From 1b6057cc3964653b3e5f959f11952057719783e5 Mon Sep 17 00:00:00 2001 From: Stellar Rounin Date: Thu, 1 Oct 2026 20:18:21 -0600 Subject: Revert "build(gh)" This reverts commit f6395beca64cc146b8f836e75096e7ea4e48f88b. --- .github/workflows/deploy.yml | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) (limited to '.github/workflows/deploy.yml') diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 34c55ed..c5f19c5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,6 +7,7 @@ on: jobs: deploy: environment: site - tierhive + runs-on: ubuntu-latest steps: @@ -22,23 +23,32 @@ jobs: - name: Build run: hugo --minify - - name: Install lftp - run: sudo apt-get update && sudo apt-get install -y lftp - - - name: Deploy + - name: Check secrets env: TH_USER: ${{ secrets.TH_USER }} TH_KEY: ${{ secrets.TH_KEY }} run: | - mkdir -p ~/.ssh - chmod 700 ~/.ssh - - printf '%s\n' "$TH_KEY" > ~/.ssh/tierhive_key - chmod 600 ~/.ssh/tierhive_key - - lftp sftp://$TH_USER@us.4.pages.tierhive.com:3523 \ - -e " - set sftp:connect-program 'ssh -a -x -i ~/.ssh/tierhive_key -o StrictHostKeyChecking=no'; - mirror --reverse --delete public/ page-stellarrounin-com/; - quit - " + if [ -n "$TH_USER" ]; then + echo "✅ TH_USER está disponible" + else + echo "❌ TH_USER está vacío" + exit 1 + fi + + if [ -n "$TH_KEY" ]; then + echo "✅ TH_KEY está disponible" + else + echo "❌ TH_KEY está vacío" + exit 1 + fi + + - name: Deploy + uses: wlixcc/SFTP-Deploy-Action@v1.2.4 + with: + server: us.4.pages.tierhive.com + port: '3523' + username: ${{ secrets.TH_USER }} + ssh_private_key: ${{ secrets.TH_KEY }} + local_path: ./public/* + remote_path: /page-stellarrounin-com/ + sftp_only: true -- cgit v1.3