david.aparoksha.dev/.gitea/workflows/publish.yml

26 lines
677 B
YAML
Raw Normal View History

2024-09-14 16:08:06 +02:00
name: Gitea Actions Demo
2024-10-04 23:33:08 +02:00
run-name: Publish
2024-09-14 16:08:06 +02:00
on: [push]
jobs:
2024-10-04 23:33:08 +02:00
publish:
runs-on: ubuntu-latest
2024-09-14 16:08:06 +02:00
steps:
2024-10-04 23:33:08 +02:00
- name: Install Zola
uses: taiki-e/install-action@v2
with:
tool: zola@0.19.1
2024-09-14 16:08:06 +02:00
- name: Check out repository code
uses: actions/checkout@v4
2024-10-05 15:06:54 +02:00
with:
submodules: 'true'
2024-10-04 23:33:08 +02:00
- name: Build
run: zola build
- name: Upload
uses: wangyucode/sftp-upload-action@v2.0.2
with:
host: 'suhail.uberspace.de'
username: 'aproksha'
password: ${{ secrets.password }}
localDir: 'public'
2024-10-17 18:34:21 +02:00
remoteDir: '/var/www/virtual/aproksha/david.aparoksha.dev/'