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