Skip to content

Commit

Permalink
Comment preview comment to PR (#56)
Browse files Browse the repository at this point in the history
* add build script

* preview
  • Loading branch information
sadnessOjisan authored Oct 2, 2021
1 parent e717f51 commit 6be052e
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 12 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,5 @@ jobs:
run: yarn run format:ci
- name: build library
run: yarn run lib build
- name: build storybook
run: yarn run lib build-storybook
- name: build LP
run: yarn run lp build
- name: typecheck
run: yarn run typecheck
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_RE_GEO }}"
projectId: re-geo
channelId: "pr-${{ github.ref }}-${{ github.sha }}"
23 changes: 23 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
"on":
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: yarn run lib build
- run: yarn run lib build-storybook
- run: yarn run lp build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_RE_GEO }}"
channelId: live
projectId: re-geo
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
"on": pull_request
jobs:
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: yarn run lib build
- run: yarn run lib build-storybook
- run: yarn run lp build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_RE_GEO }}"
projectId: re-geo
12 changes: 10 additions & 2 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,20 @@
{
"target": "storybook",
"public": "packages/lib/storybook-static",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
},
{
"target": "lp",
"public": "packages/lp/public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
]
}

0 comments on commit 6be052e

Please sign in to comment.