Skip to content

Commit

Permalink
Merge pull request #16 from pehovorka/dev
Browse files Browse the repository at this point in the history
πŸ”– Version 3.5.0 – new API
  • Loading branch information
pehovorka authored Nov 30, 2021
2 parents e58d0e5 + c4fb94b commit e9b0f58
Show file tree
Hide file tree
Showing 23 changed files with 25,693 additions and 3,662 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "covidvobcich-development"
}
}
35 changes: 35 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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:
- dev
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: πŸ“¦ Get package version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: πŸ”¨ Build Project
run: |
npm i
npm run build
env:
PUBLIC_URL: ${{ secrets.DEV_URL }}
REACT_APP_API_URL: ${{ secrets.API_URL }}
REACT_APP_MESSAGES_URL: ${{ secrets.MESSAGES_URL }}
REACT_APP_NAME: covidvobcich
REACT_APP_VERSION: ${{ steps.package-version.outputs.current-version}}
GENERATE_SOURCEMAP: true
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
REACT_APP_ENV: ${{ secrets.ENV }}
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COVIDVOBCICH_DEVELOPMENT }}"
channelId: live
projectId: covidvobcich-development
32 changes: 32 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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
- name: πŸ“¦ Get package version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: πŸ”¨ Build Project
run: |
npm i
npm run build
env:
PUBLIC_URL: ${{ secrets.DEV_URL }}
REACT_APP_API_URL: ${{ secrets.API_URL }}
REACT_APP_MESSAGES_URL: ${{ secrets.MESSAGES_URL }}
REACT_APP_NAME: covidvobcich
REACT_APP_VERSION: ${{ steps.package-version.outputs.current-version}}
GENERATE_SOURCEMAP: true
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
REACT_APP_ENV: ${{ secrets.ENV }}
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COVIDVOBCICH_DEVELOPMENT }}"
projectId: covidvobcich-development
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Loading

0 comments on commit e9b0f58

Please sign in to comment.