Skip to content

Commit

Permalink
fix: Docs not building and deploying
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Aug 30, 2024
1 parent 9b802ae commit 2d5e89c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 24 deletions.
63 changes: 43 additions & 20 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,49 @@ on:
branches:
- trunk

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# permissions:
# contents: read
# pages: write
# id-token: write

# # Allow one concurrent deployment
# concurrency:
# group: "pages"
# cancel-in-progress: true

jobs:
# Build job
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Install OS Dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y git cmake ninja-build wget zip
sudo apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex
sudo apt-get install -y python3 python3-pip
sudo apt-get install -y chromium
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Install JS Dependencies
run: |
npm ci
- run: npm ci
- run: npm run build-docs
- name: Install CPP Dependencies
run: |
npm run install-build-deps
- name: Build
run: |
npm run build
- name: Build Docs
run: |
npm run build-docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand All @@ -44,3 +58,12 @@ jobs:
# cname: example.com # if wanna deploy to custom domain
env:
CI: true

- name: Upload error logs
if: ${{ failure() || cancelled() }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.node }}-logs
path: |
./vcpkg/buildtrees/**/*.log
./build/**/*.log
7 changes: 3 additions & 4 deletions packages/llama/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hpcc-js/wasm-llama",
"version": "1.2.0",
"version": "1.0.0",
"description": "hpcc-js - WASM llama",
"type": "module",
"exports": {
Expand Down Expand Up @@ -37,8 +37,6 @@
"update": "npx -y npm-check-updates -u -t minor",
"update-major": "npx -y npm-check-updates -u"
},
"dependencies": {},
"devDependencies": {},
"keywords": [
"graphviz",
"typescript",
Expand All @@ -54,5 +52,6 @@
"url": "git+https://github.com/hpcc-systems/hpcc-js-wasm.git"
},
"homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/",
"license": "Apache-2.0"
"license": "Apache-2.0",
"gitHead": "537cf80b40f893463b89a3b863762db3ce1bc832"
}

0 comments on commit 2d5e89c

Please sign in to comment.