Update .github/workflows/pages-deploy.yml
This commit is contained in:
parent
e16fbdea5a
commit
642d32128a
1 changed files with 22 additions and 9 deletions
31
.github/workflows/pages-deploy.yml
vendored
31
.github/workflows/pages-deploy.yml
vendored
|
@ -22,6 +22,14 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Setup SFTP & Ruby
|
||||||
|
run: |
|
||||||
|
apt update -y
|
||||||
|
apt upgrade -y
|
||||||
|
apt install sftp sshpass ruby jekyll -y
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -33,20 +41,25 @@ jobs:
|
||||||
# If using the 'assets' git submodule from Chirpy Starter, uncomment above
|
# If using the 'assets' git submodule from Chirpy Starter, uncomment above
|
||||||
# (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)
|
# (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)
|
||||||
|
|
||||||
- name: CI Health Status Check
|
- name: Health Check [CI TEST]
|
||||||
run: |
|
run: |
|
||||||
ls -la
|
ls -la
|
||||||
pwd
|
pwd
|
||||||
whoami
|
whoami
|
||||||
|
echo "this is a text file" >> index.html
|
||||||
- name: Setup Ruby
|
date >> index.html
|
||||||
run: |
|
export SSHPASS= ${{ secrets.SFTP_PASSWORD }}
|
||||||
apt update -y
|
sshpass -e sftp -oBatchMode=no -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
|
||||||
apt upgrade -y
|
put index.html www/index.html
|
||||||
apt install ruby jekyll -y
|
bye
|
||||||
|
!
|
||||||
|
|
||||||
|
|
||||||
|
- name: Build Site
|
||||||
|
run: bundle exec jekyll b
|
||||||
|
env:
|
||||||
|
JEKYLL_ENV: "production"
|
||||||
|
|
||||||
|
|
||||||
# - name: Setup Pages
|
# - name: Setup Pages
|
||||||
# id: pages
|
# id: pages
|
||||||
|
|
Loading…
Reference in a new issue