Skip to content

Publish

Publish #275

Workflow file for this run

name: Continuous Deployment
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
buildAndDeploy:
name: Build and Deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.14.2]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install packages
run: yarn install
- name: Build
run: yarn lerna run --parallel build-doc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
- name: Get commit message
id: commit_message
run: |
commit_message=$(git log --format=%B -n 1 ${{ github.sha }} | tr -d '\n')
echo "commit_message=$commit_message" >> $GITHUB_OUTPUT
- name: Waroom Deployment Tracking
uses: topotal/waroom-deployment-tracking-action@v1
with:
organization: 'topotal'
service: 'Waroom'
key: ${{ secrets.WAROOM_DEPLOYMENT_TRACKING_INTEGRATION_KEY }}
description: ${{ steps.commit_message.outputs.commit_message }}
environment: 'production'