Skip to content

Commit

Permalink
Update deploy-blog.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alibabaedge authored Jun 27, 2024
1 parent 411e6d4 commit 00c255e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy-blog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@ jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
continue-on-error: true

- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
node-version: '20'

# ... rest of the workflow ...
ruby-version: '3.1'

- name: Install dependencies
- name: Install Jekyll and Bundler
run: |
gem install jekyll bundler
bundle install
- name: Build blog
Expand All @@ -39,5 +40,5 @@ jobs:
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
run: |
ssh ${SSH_USERNAME}@${SSH_HOST} "mkdir -p ~/validatorinfo-blog"
rsync -avz --delete ./_site/ ${SSH_USERNAME}@${SSH_HOST}:~/validatorinfo-blog/
sshpass -p ${SSH_PASSWORD} ssh ${SSH_USERNAME}@${SSH_HOST} "mkdir -p ~/validatorinfo-blog"
sshpass -p ${SSH_PASSWORD} rsync -avz --delete ./_site/ ${SSH_USERNAME}@${SSH_HOST}:~/validatorinfo-blog/

0 comments on commit 00c255e

Please sign in to comment.