yamatotoma.to/.forgejo/workflows/build.yaml
tomato 520a567455
Some checks failed
/ build (push) Failing after 5s
test
2025-05-25 23:27:45 -04:00

35 lines
1.1 KiB
YAML

on:
push:
branches:
- citest
jobs:
build:
runs-on: docker
container:
image: ruby:3.3
steps:
- name: Install system dependencies
run: apt-get update && apt-get install rsync -y
- name: generating source
run: touch index.html
- name: deploying
run: |
echo ${{ secrets.SERVER_SSH_KEY }} >> /tmp/id_ecdsa
chmod 600 /tmp/id_ecdsa
rsync \
-e "ssh -oStrictHostKeyChecking=no -i /tmp/id_ecdsa" \
-avz --delete \
_site/ \
deploy@${{ secrets.SERVER_NAME }}:/
rm -f /tmp/id_ecdsa
# run: apt-get update && apt-get install nodejs rsync -y
# - uses: https://code.forgejo.org/actions/checkout@v4
# - name: Install ruby dependencies
# run: bundle install
# - name: Build site
# run: jekyll build --future --config _config.yml
# - name: Deploy site
# run: |
# rsync -e "ssh -oStrictHostKeyChecking=no -i <(echo ${{ secrets.SERVER_SSH_KEY }})" -avz --delete _site/ deploy@${{ secrets.SERVER_NAME }}:/