Skip to content

Commit

Permalink
chore: add deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed May 11, 2022
1 parent 0a47b1d commit 0b25aad
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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 > docs/.vuepress/dist/_version.json
env:
NODE_ENV: production

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

0 comments on commit 0b25aad

Please sign in to comment.