Website/.gitea/workflows/upload.yml
2023-09-15 16:29:06 +02:00

31 lines
893 B
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Upload Website
on: [ push ]
jobs:
sftp:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Upload files via SFTP
uses: https://github.com/wangyucode/sftp-upload-action@v2.0.2
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
password: ${{ secrets.PASSWORD }}
forceUpload: false
localDir: '.'
remoteDir: '/var/www/crss'
exclude: '.*,.git*,.gitea*,LICENSE,README.md'
- name: Install dependencies over SSH
uses: https://github.com/nekiro/ssh-job@main
with:
host: ${{ secrets.HOST }}
user: ${{ secrets.USER }}
password: ${{ secrets.PASSWORD }}
command: |
cd /var/www/crss
composer install --no-dev --optimize-autoloader