Skip to content

Publish https://reviewstack.dev #617

Publish https://reviewstack.dev

Publish https://reviewstack.dev #617

name: Publish https://reviewstack.dev
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1-5'
jobs:
deploy:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Yarn
run: npm install -g yarn
- name: Grant Access
run: git config --global --add safe.directory "$PWD"
- name: Install dependencies
working-directory: ./eden/contrib/
run: yarn install
# Build codegen and then do some sanity checks so we don't push the site
# when the tests are broken.
- name: GraphQL/TextMate codegen
working-directory: ./eden/contrib/reviewstack
run: yarn codegen
- name: ESLint
working-directory: ./eden/contrib/reviewstack
run: yarn eslint
- name: Unit tests
working-directory: ./eden/contrib/reviewstack
run: yarn test --watchAll=false
- name: Build the static site
working-directory: ./eden/contrib/reviewstack.dev
run: yarn release
# Push to the release branch.
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: reviewstack.dev-prod
publish_dir: ./eden/contrib/reviewstack.dev/build