Skip to content

update docs and document embed-api #39

update docs and document embed-api

update docs and document embed-api #39

Workflow file for this run

name: "Build"
on: [push]
jobs:
docker-build-publish:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Submodules
run: git submodule update --init --recursive --remote
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build
run: yarn && yarn docs:build
- name: Docker login
run: echo ${{ secrets.PAT }} | docker login ghcr.io --username yomanz --password-stdin
- name: Docker build
run: docker build -t ghcr.io/widgetbot-io/documentation:latest .
- name: Docker push tag latest
run: docker push ghcr.io/widgetbot-io/documentation:latest