Skip to content

v5.4.3

v5.4.3 #86

Workflow file for this run

name: PROD Deployment
on:
release:
types: [published]
jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }}
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: npm
- name: Install Dependencies
run: npm install
- name: Build
run: npm run generate
env:
MEILISEARCH_HOST: '${{ vars.MEILISEARCH_HOST }}'
MEILISEARCH_INDEX: '${{ vars.MEILISEARCH_INDEX }}'
MEILISEARCH_SEARCH_API_KEY: '${{ secrets.MEILISEARCH_SEARCH_API_KEY }}'
- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ARCHWAY_NETWORK }}'
channelId: live
projectId: archway-network
target: 'archway-docs'
- name: Update meilisearch index
run: npm run meilisearch:index
env:
MEILISEARCH_HOST: '${{ vars.MEILISEARCH_HOST }}'
MEILISEARCH_INDEX: '${{ vars.MEILISEARCH_INDEX }}'
MEILISEARCH_WRITE_API_KEY: '${{ secrets.MEILISEARCH_WRITE_API_KEY }}'