diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml new file mode 100644 index 0000000..a2b9d02 --- /dev/null +++ b/.forgejo/workflows/ci.yaml @@ -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 diff --git a/static/card.png b/static/card.png index bc04af2..b2a666e 100644 Binary files a/static/card.png and b/static/card.png differ