Skip to content

feat: powered up queries! macro in Rust SDK #32

feat: powered up queries! macro in Rust SDK

feat: powered up queries! macro in Rust SDK #32

Workflow file for this run

name: Site Deploy
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run
# in-progress and latest queued. However, do NOT cancel in-progress runs as
# we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
env:
TAILWIND_VERSION: 3.4.4
steps:
- name: Check out the repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Install Zola
uses: taiki-e/install-action@ca770cf74e8d33db1454f49b3c96ef207b36cc46 # zola
with:
tool: [email protected]
- name: Install Tailwind CLI
run: |
curl --proto '=https' --tlsv1.2 -sSLO https://github.com/tailwindlabs/tailwindcss/releases/download/v${TAILWIND_VERSION}/tailwindcss-linux-x64
chmod +x tailwindcss-linux-x64
mv tailwindcss-linux-x64 tailwindcss
mkdir -p "${HOME}/.local/bin"
mv tailwindcss "${HOME}/.local/bin/tailwindcss"
echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Install Deno
uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
with:
deno-version: v2.x
- name: Set up Python 3.10
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.10"
- name: Build and copy Python SDK docs
run: |
pip install uv
mkdir site/static/sdk
cd sdk/python/docs
uv run make html
cp -r ./build/html ../../../site/static/sdk/python
# Setup GitHub Pages
#
# Specifically, this sets some variables we can use in later steps that
# make life easier, namely:
#
# - `base_url`: The full base URL of the site, to which paths append.
# - `origin`: Just the protocol and domain portion of the `base_url`.
# - `host`: Just the domain portion of the `base_url`.
# - `base_path`: Just the path portion of the `base_url`.
- name: Configure GitHub Pages
id: pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
# Build the actual site with Zola and Tailwind.
- name: Build Hipcheck Website
run: |
cd site
zola build
tailwindcss -i styles/main.css -o public/main.css
cd scripts
deno task bundle
- name: Upload Build Output
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: ./site/public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5