chore: switch deploy workflow to scp-based action #24
This file contains hidden or 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: 🚀 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 --release --base-href="/features_tour/" | |
| - name: rsync deployments | |
| 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 }} |