replaced github yml with gitea
Some checks failed
Deploy cjsatarine.space zola website / deploy (push) Has been cancelled

This commit is contained in:
CJSatnarine
2025-09-13 17:48:39 -04:00
parent 906a74bd21
commit d6c646ac05
2 changed files with 28 additions and 19 deletions

View File

@@ -0,0 +1,28 @@
name: Deploy cjsatarine.space zola website
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: install zola
run: |
wget https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz
tar -xvzf *.tar.gz
- name: Deploy
run: |
apt update -y && apt-get install -y --no-install-recommends rsync
eval "$(ssh-agent -s)"
ssh-add - <<< "${SSH_PRIVATE_KEY}"
mkdir -p ~/.ssh/
ssh-keyscan -H ${HOST} >> ~/.ssh/known_hosts
rsync -r --delete-after public/* "${SSH_USERNAME}@${HOST}:${HOST_DIR}"