diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index f6eab91..cd5f8c7 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -20,7 +20,7 @@ concurrency: cancel-in-progress: true jobs: - build: + build_deploy: runs-on: docker container: image: bitnami/minideb:bookworm-arm64 @@ -64,6 +64,16 @@ jobs: - name: Push to "website" branch run: | echo "do not ready yet" + + - name: Checkout & Deploy + run: | + git clone https://git.asandikci.com/asandikci.com/web + cd web + git checkout website + sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! + put -r . www/ + bye + ! @@ -92,29 +102,4 @@ jobs: # - name: Upload site artifact # uses: actions/upload-pages-artifact@v3 # with: - # path: "_site${{ steps.pages.outputs.base_path }}" - - deploy: - runs-on: docker - needs: build - container: - image: bitnami/minideb:bookworm-arm64 - steps: - - name: Setup System Resources & Settings - run: | - apt-get update -y - apt-get upgrade -y - apt-get install git sshpass - # no need to these after using own docker image! (see asandikci/DockerTests) - - - name: Checkout & Deploy - run: | - git clone https://git.asandikci.com/asandikci.com/web - cd web - git checkout website - echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd - chmod 0400 ~/.passwd - sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << ! - put -r . www/ - bye - ! \ No newline at end of file + # path: "_site${{ steps.pages.outputs.base_path }}" \ No newline at end of file