testando workflows #2
This file contains 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: Main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v1 | |
with: | |
channel: "stable" | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build Web | |
run: flutter build web --release | |
- name: Deploy | |
run: | | |
cd build/web | |
git init | |
git config --global user.email "[email protected]" | |
git config --global user.name "Jean Carlo" | |
git status | |
git remote add origin https://${{secrets.token}}@github.com/jeancarlopolo/jeancarlopolo.github.io | |
git checkout -b gh-pages | |
git add --all | |
git commit -m "update" | |
git push origin gh-pages -f |