parent
0c250b77c6
commit
031904f5db
1 changed files with 9 additions and 5 deletions
|
@ -10,13 +10,17 @@ jobs:
|
||||||
image: ruby:3.3
|
image: ruby:3.3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install node
|
- name: Install system dependencies
|
||||||
run: apt update && apt install nodejs -y
|
run: apt update && apt install nodejs rsync -y
|
||||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install ruby dependencies
|
||||||
run: bundle install
|
run: bundle install
|
||||||
- name: Build site
|
- name: Build site
|
||||||
run: jekyll build --future --config _config.yml
|
run: jekyll build --future --config _config.yml
|
||||||
- name: Deploy site
|
- name: Deploy site
|
||||||
run: |
|
run: >
|
||||||
rsync -e "ssh -oStrictHostKeyChecking=no -i <(echo ${{ secrets.SERVER_SSH_KEY }})" -avz --delete _site/ deploy@${{ secrets.SERVER_NAME }}:/
|
rsync
|
||||||
|
-e "ssh -oStrictHostKeyChecking=no -i <(echo ${{ secrets.SERVER_SSH_KEY }})"
|
||||||
|
-avz --delete
|
||||||
|
_site/
|
||||||
|
deploy@${{ secrets.SERVER_NAME }}:/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue