Update .github/workflows/pages-deploy.yml
Some checks failed
Build and Deploy Test Version - next.asandikci.com / build (push) Successful in 4m3s
Build and Deploy Test Version - next.asandikci.com / deploy (push) Failing after 29s

This commit is contained in:
Aliberk Sandıkçı 2024-11-13 22:04:46 +03:00
parent 1fa85ad116
commit 7b5e366190

View file

@ -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,19 +47,11 @@ 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: |
ruby -v
@ -71,6 +61,12 @@ jobs:
env:
JEKYLL_ENV: "production"
- name: Push to "website" branch
run: |
echo "do not ready yet"
# - name: Setup Pages
# id: 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
!