Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: experimental: deploy to GitHub Pages #14

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/web-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build, Release app to Github Pages

on:
push:
branches:
- '*'
#- 'release/*'


jobs:

build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'

- name: 'Run flutter pub get'
run: flutter pub get

- name: Analyze code
run: flutter analyze .

# - name: 'Run Test(s)'
# run: flutter test

#- name: Enable flutter web
# run: flutter config --enable-web

- name: Build Web App
run: flutter build web



# Deploy to local repo
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: client/build/web
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


#- name: deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./build/web

#- name: Deploy to Firebase Hosting
#uses: w9jds/firebase-action@master
#with:
#args: deploy --only hosting
#env:
#FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}