Skip to content

Commit

Permalink
Remove unnecessary steps and use "working-directory"
Browse files Browse the repository at this point in the history
  • Loading branch information
GroovinChip committed May 2, 2021
1 parent f02cbd7 commit bcf5ec1
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,18 @@ jobs:
- uses: subosito/flutter-action@v1
with:
channel: stable
- run: flutter pub get
- run: |
cd example
flutter build web
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: web-build
path: example/build/web
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: web-build
- name: Display structure of build files
run: ls -R
working-directory: ./web
- name: Deploy to GH Pages
- name: Install Dependencies
run: flutter pub get
working-directory: ./example
- name: Build Web
run: flutter build web
working-directory: ./example
- name: Deploy
run: |
cd example/build/web
git init
git config --global user.email groovinchip@gmail.com
git config --global user.name GroovinChip
git config --global user.email flutter-ci@github.com
git config --global user.name CI
git status
git remote add origin https://${{secrets.GH_TOKEN}}@github.com/GroovinChip/macos_ui.git
git checkout -b gh-pages
Expand Down

0 comments on commit bcf5ec1

Please sign in to comment.