Update .github/workflows/pages-deploy.yml
This commit is contained in:
parent
1fa85ad116
commit
7b5e366190
1 changed files with 33 additions and 23 deletions
56
.github/workflows/pages-deploy.yml
vendored
56
.github/workflows/pages-deploy.yml
vendored
|
@ -27,11 +27,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Setup System Resources & Settings
|
- name: Setup System Resources & Settings
|
||||||
run: |
|
run: |
|
||||||
# echo "Europe/Istanbul" | tee /etc/timezone
|
|
||||||
# dpkg-reconfigure --frontend noninteractive tzdata
|
|
||||||
apt-get update -y
|
apt-get update -y
|
||||||
apt-get upgrade -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)
|
# no need to these after using own docker image! (see asandikci/DockerTests)
|
||||||
|
|
||||||
- name: Health Check [CI TEST]
|
- name: Health Check [CI TEST]
|
||||||
|
@ -49,18 +47,10 @@ jobs:
|
||||||
bye
|
bye
|
||||||
!
|
!
|
||||||
|
|
||||||
- name: Checkout
|
- name: Git Clone
|
||||||
run: |
|
run: |
|
||||||
git clone https://git.asandikci.com/asandikci.com/web
|
git clone https://git.asandikci.com/asandikci.com/web
|
||||||
ls -la ./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
|
- name: Build Site
|
||||||
run: |
|
run: |
|
||||||
|
@ -69,7 +59,13 @@ jobs:
|
||||||
bundle install
|
bundle install
|
||||||
bundle exec jekyll b
|
bundle exec jekyll b
|
||||||
env:
|
env:
|
||||||
JEKYLL_ENV: "production"
|
JEKYLL_ENV: "production"
|
||||||
|
|
||||||
|
- name: Push to "website" branch
|
||||||
|
run: |
|
||||||
|
echo "do not ready yet"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# - name: Setup Pages
|
# - name: Setup Pages
|
||||||
|
@ -98,13 +94,27 @@ jobs:
|
||||||
# with:
|
# with:
|
||||||
# path: "_site${{ steps.pages.outputs.base_path }}"
|
# path: "_site${{ steps.pages.outputs.base_path }}"
|
||||||
|
|
||||||
# deploy:
|
deploy:
|
||||||
# environment:
|
runs-on: docker
|
||||||
# name: github-pages
|
needs: build
|
||||||
# url: ${{ steps.deployment.outputs.page_url }}
|
container:
|
||||||
# runs-on: ubuntu-latest
|
image: bitnami/minideb:bookworm-arm64
|
||||||
# needs: build
|
steps:
|
||||||
# steps:
|
- name: Setup System Resources & Settings
|
||||||
# - name: Deploy to GitHub Pages
|
run: |
|
||||||
# id: deployment
|
apt-get update -y
|
||||||
# uses: actions/deploy-pages@v4
|
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
|
||||||
|
!
|
Loading…
Reference in a new issue