Skip to content

Merge pull request #20 from Thuenen-Forest-Ecosystems/merge-supabase-… #20

Merge pull request #20 from Thuenen-Forest-Ecosystems/merge-supabase-…

Merge pull request #20 from Thuenen-Forest-Ecosystems/merge-supabase-… #20

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.2'
channel: 'stable'
- name: Enable Flutter Web
run: flutter config --enable-web
- name: Download Dependencies
run: flutter pub get
- name: 'Copy env file'
run: cp .env.example .env
- name: Build
run: flutter build web --base-href "/TFM-client-app/"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web