Skip to content

add community tab and table #2

add community tab and table

add community tab and table #2

Workflow file for this run

name: Deploy Preview
on:
pull_request:
branches: [ master ]
push:
branches-ignore: [ master ]
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Build site
run: bundle exec jekyll build --config _config.yml,_config_staging.yml
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref != 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
destination_dir: preview/${{ github.head_ref || github.ref_name }}
- name: Comment PR
uses: actions/github-script@v6
if: github.event_name == 'pull_request'
with:
script: |
const branch = context.payload.pull_request.head.ref;
const previewUrl = `https://linkml.io/preview/${branch}/`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `🚀 **Preview deployed!**\n\n📱 [View preview](${previewUrl})\n📱 [Community page](${previewUrl}community)`
});