Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminology Design tools integration #177

Merged
merged 25 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 38 additions & 36 deletions .github/workflows/framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,49 @@ name: framework

on:
pull_request:
branches: [master]
branches:
- master
push:
branches: [master]
branches:
- master
workflow_dispatch:

jobs:
checks:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Test Build
run: |
yarn install --frozen-lockfile
STAGING=true yarn docusaurus parse
STAGING=true yarn docusaurus glossary
STAGING=true yarn build
mv build public
gh-release:
if: github.event_name != 'pull_request'
deploy:
name: Run Terminology Design tools and deploy docs
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Checkout repository
uses: actions/checkout@v4
with:
node-version: '16.x'
- uses: webfactory/[email protected]
fetch-depth: 0

- name: Install dependencies
run: bun install

- name: Run Terminology Design tools
run: npm run build:terminology

- name: Commit glossaries to repository
uses: stefanzweifel/git-auto-commit-action@v5
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: "MarIliadi"
commit_message: Update Glossaries
file_pattern: "docs/glossaries/mrg.*.yaml"

- name: Build and Deploy
run: |
git config --global user.email "[email protected]"
git config --global user.name "MarIliadi"
yarn install --frozen-lockfile
STAGING=true yarn docusaurus parse
STAGING=true yarn docusaurus glossary
STAGING=true yarn build
mv build public
STAGING=true yarn deploy
npx docusaurus build --out-dir build
touch build/.nojekyll

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
Loading