Skip to content

v7.0.5

v7.0.5 #152

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 }}'
NODEOPS_PLAYGROUND_LITE_HOST: '${{ secrets.NODEOPS_PLAYGROUND_LITE_HOST }}'
NODEOPS_PLAYGROUND_LITE_BASIC_AUTH: '${{ secrets.NODEOPS_PLAYGROUND_LITE_BASIC_AUTH }}'
NODEOPS_PLAYGROUND_LITE_USER: '${{ secrets.NODEOPS_PLAYGROUND_LITE_USER }}'
- 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 }}'