Skip to content

Commit

Permalink
chore: add documentation job
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfred committed Oct 8, 2024
1 parent 1a566c0 commit 46b330e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pull_request_secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,42 @@ jobs:
env:
PIP_FIND_LINKS: ${{ github.workspace }}/timefold-solver/dist
run: tox

build_documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout frontend
id: checkout-frontend
uses: actions/checkout@v4
with:
repository: TimefoldAI/frontend
token: ${{ secrets.JRELEASER_GITHUB_TOKEN }} # Safe; only used to clone the repo and not stored in the fork.
fetch-depth: 0 # Otherwise merge will fail on account of not having history.

- name: Set up NodeJs
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Build Documentation
env:
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}
run: |
sed -i 's/tags:\s*\[v[0-9.]*,\s*v0.8.42]/tags: \[main]/' apps/docs/antora-playbook.yml
npm ci
npm run build -- --filter docs
- name: Deploy Documentation (Preview Mode)
if: ${{ github.ref != 'refs/heads/main' }}
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: ./apps/docs
command: pages deploy ./public-serve --project-name=timefold-docs --branch=${{ github.ref }}

sonarcloud:
needs: approval_required
name: SonarCloud
Expand Down

0 comments on commit 46b330e

Please sign in to comment.