Skip to content

Commit

Permalink
Create build_web.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
esDotDev authored Sep 26, 2024
1 parent 1b606e8 commit 1a6310e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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

- name: Upload to FTP
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: build/web/
server-dir: /wonderous.app/web_test/

0 comments on commit 1a6310e

Please sign in to comment.