diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index 237352f..f6eab91 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -27,11 +27,9 @@ jobs: steps: - name: Setup System Resources & Settings run: | - # echo "Europe/Istanbul" | tee /etc/timezone - # dpkg-reconfigure --frontend noninteractive tzdata apt-get update -y apt-get upgrade -y - apt-get install git sshpass ruby-dev build-essential make zlib1g-dev jekyll -y + apt-get install git sshpass ruby-dev build-essential jekyll -y # make zlib1g-dev # no need to these after using own docker image! (see asandikci/DockerTests) - name: Health Check [CI TEST] @@ -49,18 +47,10 @@ jobs: bye ! - - name: Checkout + - name: Git Clone run: | git clone https://git.asandikci.com/asandikci.com/web ls -la ./web - - # uses: actions/checkout@v4 - # with: - # fetch-depth: 0 - # github-server-url: 'https://git.asandikci.com' - # # submodules: true - # # If using the 'assets' git submodule from Chirpy Starter, uncomment above - # # (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets) - name: Build Site run: | @@ -69,7 +59,13 @@ jobs: bundle install bundle exec jekyll b env: - JEKYLL_ENV: "production" + JEKYLL_ENV: "production" + + - name: Push to "website" branch + run: | + echo "do not ready yet" + + # - name: Setup Pages @@ -98,13 +94,27 @@ jobs: # with: # path: "_site${{ steps.pages.outputs.base_path }}" -# deploy: -# environment: -# name: github-pages -# url: ${{ steps.deployment.outputs.page_url }} -# runs-on: ubuntu-latest -# needs: build -# steps: -# - name: Deploy to GitHub Pages -# id: deployment -# uses: actions/deploy-pages@v4 + 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