Skip to content

Commit

Permalink
Update workflow to deploy to firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sartim committed Mar 25, 2024
1 parent e24ab38 commit 5244bc5
Showing 1 changed file with 11 additions and 39 deletions.
50 changes: 11 additions & 39 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,17 @@
name: build

on:
name: Deploy to Firebase Hosting on merge
'on':
push:
branches: [master]

branches:
- master
jobs:
build:
build_and_deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Setup CI/CD Server
run: |
sudo apt-get update &&
sudo apt-get install -y awscli &&
sudo snap install bower --classic
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- run: yarn install && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
node-version: ${{ matrix.node-version }}
- run: npm install --force
- run: bower install
- name: Run build
run: npm run build --noninteractive
env:
CI: false
- run: ./scripts/create_api_dot_js.sh
deploy:
runs-on: ubuntu-latest
needs: build
strategy:
max-parallel: 1
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Deploy to prod
run: |
echo "deploy"
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
channelId: live
projectId: tridim-technologies

0 comments on commit 5244bc5

Please sign in to comment.