diff --git a/.github/workflows/biuld_and_deploy_web_staging b/.github/workflows/biuld_and_deploy_web_staging new file mode 100644 index 00000000..28ce106e --- /dev/null +++ b/.github/workflows/biuld_and_deploy_web_staging @@ -0,0 +1,25 @@ +name: Deploy Web - Staging + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + uses: ./.github/workflows/build_web.yaml + + deploy: + runs-on: ubuntu-latest + + steps: + - name: Upload to SFTP + uses: wlixcc/SFTP-Deploy-Action@v1.2.4 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local_path: ./build/web/* + remote_path: staging.wonderous.app/web + sftp_only: true