Delete .github/workflows/sftp-test.yml #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy Flutter Web App | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.24.0' | |
channel: 'stable' | |
- name: Get dependencies | |
run: flutter pub get | |
- name: Enable Flutter web | |
run: flutter config --enable-web | |
- name: Build Flutter web app | |
run: flutter build web --release --wasm | |
- name: Upload to SFTP | |
uses: wlixcc/[email protected] | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local_path: ./build/web/* | |
remote_path: wonderous.app/web-staging | |
sftp_only: true |