Skip to content

Commit

Permalink
Update workflows matching
Browse files Browse the repository at this point in the history
  • Loading branch information
duyet committed Sep 8, 2019
1 parent fbab28a commit 62cd32e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy_functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ on:
branches:
- master
paths:
- 'functions'

# F*king golang https://help.github.com/en/articles/workflow-syntax-for-github-actions#onpushpull_requestpaths
- 'functions/*'
- 'functions/*/*'
- 'functions/*/*/*'
- 'functions/*/*/*/*'
- 'functions/*/*/*/*/*'
- 'functions/*/*/*/*/*/*'
- 'functions/*/*/*/*/*/*/*'
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/deploy_hosting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ on:
branches:
- master
paths:
# F*king golang https://help.github.com/en/articles/workflow-syntax-for-github-actions#onpushpull_requestpaths
- 'hosting/*'
- 'hosting/*/*'
- 'hosting/*/*/*'
- 'hosting/*/*/*/*'
- 'hosting/*/*/*/*/*'
- 'hosting/*/*/*/*/*/*'
- 'hosting/*/*/*/*/*/*/*'

jobs:
deploy:
Expand All @@ -23,6 +30,14 @@ jobs:
npm run lint
- name: Deploy hosting
run: |
echo "GATSBY_API_KEY=${{ secrets.GATSBY_API_KEY }}\n" >> .env
echo "GATSBY_AUTH_DOMAIN=${{ secrets.FIREBASE_DOMAIN }}\n" > .env
echo "GATSBY_DATABASE_URL=${{ secrets.GATSBY_DATABASE_URL }}\n" > .env
echo "GATSBY_PROJECT_ID=${{ secrets.GATSBY_PROJECT_ID }}\n" > .env
echo "GATSBY_STORAGE_BUCKET=${{ secrets.GATSBY_STORAGE_BUCKET }}\n" > .env
echo "GATSBY_MESSAGING_SENDER_ID=${{ secrets.GATSBY_MESSAGING_SENDER_ID }}\n" > .env
echo "GATSBY_VAPID_KEY=${{ secrets.GATSBY_VAPID_KEY }}\n" > .env
echo "GATSBY_APPID=${{ secrets.GATSBY_APPID }}\n" > .env
npm run build
export FIREBASE_TOKEN=${{ secrets.FIREBASE_TOKEN }}
npm run deploy

0 comments on commit 62cd32e

Please sign in to comment.