Skip to content

Commit e9b0f58

Browse files
authored
Merge pull request #16 from pehovorka/dev
πŸ”– Version 3.5.0 – new API
2 parents e58d0e5 + c4fb94b commit e9b0f58

23 files changed

+25693
-3662
lines changed

β€Ž.firebasercβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "covidvobcich-development"
4+
}
5+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting on merge
5+
"on":
6+
push:
7+
branches:
8+
- dev
9+
jobs:
10+
build_and_deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: πŸ“¦ Get package version
15+
id: package-version
16+
uses: martinbeentjes/npm-get-version-action@master
17+
- name: πŸ”¨ Build Project
18+
run: |
19+
npm i
20+
npm run build
21+
env:
22+
PUBLIC_URL: ${{ secrets.DEV_URL }}
23+
REACT_APP_API_URL: ${{ secrets.API_URL }}
24+
REACT_APP_MESSAGES_URL: ${{ secrets.MESSAGES_URL }}
25+
REACT_APP_NAME: covidvobcich
26+
REACT_APP_VERSION: ${{ steps.package-version.outputs.current-version}}
27+
GENERATE_SOURCEMAP: true
28+
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
29+
REACT_APP_ENV: ${{ secrets.ENV }}
30+
- uses: FirebaseExtended/action-hosting-deploy@v0
31+
with:
32+
repoToken: "${{ secrets.GITHUB_TOKEN }}"
33+
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COVIDVOBCICH_DEVELOPMENT }}"
34+
channelId: live
35+
projectId: covidvobcich-development
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting on PR
5+
"on": pull_request
6+
jobs:
7+
build_and_preview:
8+
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: πŸ“¦ Get package version
13+
id: package-version
14+
uses: martinbeentjes/npm-get-version-action@master
15+
- name: πŸ”¨ Build Project
16+
run: |
17+
npm i
18+
npm run build
19+
env:
20+
PUBLIC_URL: ${{ secrets.DEV_URL }}
21+
REACT_APP_API_URL: ${{ secrets.API_URL }}
22+
REACT_APP_MESSAGES_URL: ${{ secrets.MESSAGES_URL }}
23+
REACT_APP_NAME: covidvobcich
24+
REACT_APP_VERSION: ${{ steps.package-version.outputs.current-version}}
25+
GENERATE_SOURCEMAP: true
26+
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
27+
REACT_APP_ENV: ${{ secrets.ENV }}
28+
- uses: FirebaseExtended/action-hosting-deploy@v0
29+
with:
30+
repoToken: "${{ secrets.GITHUB_TOKEN }}"
31+
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COVIDVOBCICH_DEVELOPMENT }}"
32+
projectId: covidvobcich-development

β€Žfirebase.jsonβ€Ž

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "build",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

0 commit comments

Comments
Β (0)