Skip to content

Commit f49a6df

Browse files
authored
Add GitHub Actions workflow for Flutter web deploy
Despliegue web por Github
1 parent ca29a72 commit f49a6df

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Flutter Web Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Cambia a main si tu rama principal se llama así
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- uses: subosito/flutter-action@v2
15+
with:
16+
channel: 'stable'
17+
18+
- name: Build Web
19+
run: flutter build web --base-href "/pimos_flutter/" --release
20+
21+
- name: Deploy to GitHub Pages
22+
uses: JamesIves/github-pages-deploy-action@v4
23+
with:
24+
folder: build/web
25+
branch: gh-pages

0 commit comments

Comments
 (0)