Skip to content

Merge pull request #4 from Thuenen-Forest-Ecosystems/pages_workflow #4

Merge pull request #4 from Thuenen-Forest-Ecosystems/pages_workflow

Merge pull request #4 from Thuenen-Forest-Ecosystems/pages_workflow #4

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
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
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web
#force_orphan: true
#user_name: 'github-ci[bot]'
#user_email: 'github-actions[bot]@users.noreply.github.com'
#commit_message: 'Publish to gh-pages'