diff --git a/.gitea/workflows/main-deploy.yml b/.gitea/workflows/main-deploy.yml index f206bc4..cbb0db0 100644 --- a/.gitea/workflows/main-deploy.yml +++ b/.gitea/workflows/main-deploy.yml @@ -14,4 +14,34 @@ jobs: with: node-version: '16.x' - run: npm install - - run: npm run build \ No newline at end of file + - run: npm run build + + name: Build Site Main +on: + push: + branches: + - main + +jobs: + Build-Site: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '22.x' + + - run: npm install + - run: npm run build + + - name: Upload via lftp (SFTP) + uses: xarses/lftp-upload-action@v1 + with: + host: ${{ secrets.SFTP_HOST }} + port: 22 + username: ${{ secrets.SFTP_USER }} + password: ${{ secrets.SFTP_PASSWORD }} + local_path: build/ + remote_path: /home/pettinattk/www \ No newline at end of file