-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add web deployment on pushing master (#5)
* ci: add web deployment on pushing master * ci: add upload artifacts step * ci: remove android build step
- Loading branch information
1 parent
15f59d3
commit 2f187ca
Showing
3 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Publish Web | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish_web: | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./app/ | ||
BUILD_DIR: ./app/build/web/ | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Flutter | ||
uses: subosito/flutter-action@v1.3.0 | ||
with: | ||
channel: beta | ||
flutter-version: 1.20.0-7.2.pre | ||
|
||
- name: Install dependencies | ||
run: flutter pub get | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
|
||
- name: Build | ||
run: flutter build web --release | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
|
||
- name: Publish | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ${{ env.BUILD_DIR }} | ||
publish_branch: web | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: web_build | ||
path: ${{ env.BUILD_DIR }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shiritori.jfk.dev |