Skip to content

Commit

Permalink
Deploy auth.dev with dev environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Levitskiy committed Jan 10, 2021
1 parent 32c6fbe commit e98abfd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/pre-release-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,3 @@ jobs:
asset_path: ./auth-web.zip
asset_name: auth-web.zip
asset_content_type: application/zip
- name: Deploy at dev environment
run: |
npm i -g firebase-tools
firebase use dev --token ${{ secrets.FIREBASE_DEV_TOKEN }}
firebase deploy --only hosting:dev --token ${{ secrets.FIREBASE_DEV_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/web-deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: web-deploy

on:
push:
branches:
- master

jobs:
web-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Build
run: |
npm run build:dev
- name: Deploy at dev environment
run: |
npm i -g firebase-tools
firebase use dev --token ${{ secrets.FIREBASE_PROD_TOKEN }}
firebase deploy --only hosting:prod --token ${{ secrets.FIREBASE_PROD_TOKEN }}
File renamed without changes.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:dev": "ng build --aot",
"build:prod": "ng build --prod",
"test": "jest",
"test:watch": "jest --watch",
Expand Down

0 comments on commit e98abfd

Please sign in to comment.