Create StyledImage #91
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: Demo Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: stable | |
- name: Install Dependencies | |
run: flutter pub get | |
working-directory: ./demo | |
- name: Build Web | |
run: flutter build web --release --source-maps | |
working-directory: ./demo | |
- name: Deploy | |
run: | | |
cd demo/build/web | |
git init | |
git config user.name "leoafarias" | |
git config user.email "[email protected]" | |
git remote add secure-origin https://username:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
git checkout -b gh-pages | |
git add . | |
git commit -m "Deployed Github Pages" | |
git push --force secure-origin gh-pages |