-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (32 loc) · 1.03 KB
/
Copy pathdeploy-example.yaml
File metadata and controls
38 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 🚀 Deploy Flutter Web Example on Push
on:
push:
branches:
- main
jobs:
web-deploy:
name: 🎉 Deploy Flutter Web Example
runs-on: ubuntu-latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install Dependencies for Example
working-directory: example
run: flutter pub get
- name: Build Flutter Web for Example
working-directory: example
run: flutter build web --wasm --release --base-href="/features_tour/"
- name: Copy files via SSH
uses: appleboy/scp-action@v1
with:
host: ${{ secrets.SFTP_REMOTE_HOST }}
username: ${{ secrets.SFTP_REMOTE_USER }}
password: ${{ secrets.SFTP_REMOTE_PASSWORD }}
port: ${{ secrets.SFTP_REMOTE_PORT }}
source: example/build/web
target: ${{ secrets.SFTP_REMOTE_PATH }}
strip_components: true