Adding CI
Some checks failed
/ build (push) Failing after 33s
/ deploy (push) Has been skipped

This commit is contained in:
Lyes Saadi 2025-12-18 13:49:01 +01:00
parent da61f8b88a
commit e038f17e67
Signed by: lyes
GPG key ID: 55A1D803917CF39A
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,40 @@
on:
push:
branches:
- main
jobs:
build:
runs-on: fedora-latest
steps:
- name: checkout code
uses: actions/checkout@v6
- name: install dependencies
run: dnf install -y zola
- name: build
run: zola build
- name: upload output
uses: actions/upload-artifact@v6
with:
name: output
path: public/
if-no-files-found: error
include-hidden-files: true
deploy:
needs:
- build
runs-on: fedora-latest
steps:
- name: download build
uses: actions/download-artifact@v7
with:
name: output
path: public/
- name: preparing secrets
run: |
eval $(ssh-agent -s)
bash -c 'ssh-add <(echo "${SSH_PRIVATE_KEY}")'
mkdir -p ~/.ssh
echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts
# - name: sending the files
# run: rsync -hrvz --delete public/ ${SSH_USER}@${SSH_HOST}:/var/data/www/lyes.eu

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before After
Before After