Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Closed
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
105 changes: 54 additions & 51 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,56 @@
name: documentation
# docs are moved to main badger repo (https://github.com/xopt-org/Badger),
# where they build/deploy with .github/workflows/docs.yml

on:
pull_request:
branches: [xopt-org]
push:
branches: [xopt-org]
# name: documentation

jobs:
checks:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Test Build
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build
gh-release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY_SLACLAB }}
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.email "wenatuhs@gmail.com"
git config --global user.name "wenatuhs"
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run deploy
# on:
# pull_request:
# branches: [xopt-org]
# push:
# branches: [xopt-org]

# jobs:
# checks:
# if: github.event_name != 'push'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-node@v1
# with:
# node-version: '18.x'
# - name: Test Build
# run: |
# if [ -e yarn.lock ]; then
# yarn install --frozen-lockfile
# elif [ -e package-lock.json ]; then
# npm ci
# else
# npm i
# fi
# npm run build
# gh-release:
# if: github.event_name != 'pull_request'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-node@v1
# with:
# node-version: '18.x'
# - uses: webfactory/ssh-agent@v0.5.0
# with:
# ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY_SLACLAB }}
# - name: Release to GitHub Pages
# env:
# USE_SSH: true
# GIT_USER: git
# run: |
# git config --global user.email "wenatuhs@gmail.com"
# git config --global user.name "wenatuhs"
# if [ -e yarn.lock ]; then
# yarn install --frozen-lockfile
# elif [ -e package-lock.json ]; then
# npm ci
# else
# npm i
# fi
# npm run deploy