Adding CI
This commit is contained in:
parent
da61f8b88a
commit
e038f17e67
2 changed files with 40 additions and 0 deletions
40
.forgejo/workflows/ci.yaml
Normal file
40
.forgejo/workflows/ci.yaml
Normal 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
|
||||
BIN
static/card.png
BIN
static/card.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 16 KiB |
Loading…
Add table
Add a link
Reference in a new issue