Skip to content

Commit

Permalink
chore(ci): add workflow for firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed May 9, 2022
1 parent 1d37545 commit 52f231f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploys.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: deploys
on:
push:
branches:
- deploy

jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- name: Git checkout
uses: actions/checkout@master

- name: Use Node.js lts/*
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install dependencies
run: npm ci

- name: Build
run: npm run docs:build

- name: Add version file
run: npm pkg get --json version name > dist/_version.json

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_DISCUE_IO }}'
projectId: discue-io-ui-docs
channelId: live

0 comments on commit 52f231f

Please sign in to comment.