lyes.eu/.forgejo/workflows/ci.yaml
Lyes Saadi 24b686d46b
Some checks failed
/ build (push) Failing after 23s
/ deploy (push) Has been skipped
Fixing CI
2025-12-18 14:02:02 +01:00

44 lines
1.1 KiB
YAML

on:
push:
branches:
- main
jobs:
build:
runs-on: fedora-latest
steps:
- name: install dependencies
run: |
curl https://lyes.eu/home/
dnf install -y zola nodejs24
- name: checkout code
uses: actions/checkout@v6
- 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: install dependencies
run: dnf install -y nodejs24
- 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