blog/.forgejo/workflows/cicd.yaml
Collin Lefeber b52a40dfc2
All checks were successful
/ build (push) Successful in 5s
use codeberg node-util
2025-05-03 16:51:14 -04:00

23 lines
638 B
YAML

---
env:
DEPLOY_REMOTE: www-cfebscom@cfebs.com
on: [push]
jobs:
build:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: docker
container:
image: codeberg.org/cfebs/node-util:latest
steps:
- name: checkout
uses: https://code.forgejo.org/actions/checkout@v4
- name: build
run: python3 ./main.py
- name: deploy
run: |
eval $(ssh-agent -s)
ssh-add <(echo "${{ secrets.FORGE_DEPLOY_PRIVATE_KEY }}")
rsync -r --delete -v --rsh="ssh -o StrictHostKeyChecking=no" -r ./public/ $DEPLOY_REMOTE:/home/www-cfebscom/public/