-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (27 loc) · 798 Bytes
/
deploy.yml
File metadata and controls
35 lines (27 loc) · 798 Bytes
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
name: Flutter Build and Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get the branch name
run: echo "Current branch name is ${{ github.ref_name }}"
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Install Flutter Dependencies
run: flutter pub get
- name: Build Flutter Web
run: flutter build web --release --base-href "/path_finding/"
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web