diff --git a/.gitea/workflows/upload.yml b/.gitea/workflows/upload.yml new file mode 100644 index 0000000..8269b6b --- /dev/null +++ b/.gitea/workflows/upload.yml @@ -0,0 +1,37 @@ +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 }} + compress: true + forceUpload: true + localDir: '.' + remoteDir: '/var/www/crss' + exclude: '.git*,.env.*,LICENSE,README.md' + ssh: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: 📃 Install dependencies on the server + uses: https://github.com/appleboy/ssh-action@v0.1.10 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + command_timeout: 30m + script: | + cd /var/www/crss + composer install \ No newline at end of file diff --git a/template/includes/head.twig b/template/includes/head.twig index d59a0b3..f57d2f8 100644 --- a/template/includes/head.twig +++ b/template/includes/head.twig @@ -8,6 +8,6 @@ Clyde's Real Survival SMP • {{ pageTitle }} - + \ No newline at end of file