Skip to content

Deploy jaq playground #23

Deploy jaq playground

Deploy jaq playground #23

Workflow file for this run

name: Deploy jaq playground
on:
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
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:
deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# - uses: actions/cache/restore@v4
# with:
# path: |
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# key: cargo-${{ hashFiles('**/Cargo.lock') }}
#
# - name: Install wasm-pack
# shell: bash
# run: |
# VERSION="0.12.1"
# DIR=wasm-pack-v${VERSION}-x86_64-unknown-linux-musl
# wget https://github.com/rustwasm/wasm-pack/releases/download/v${VERSION}/${DIR}.tar.gz
# tar xzf ${DIR}.tar.gz
# mv ${DIR}/wasm-pack ~/.cargo/bin
#
# - name: Compile
# run: wasm-pack build --target web --no-typescript --no-pack --release
# working-directory: jaq-play
- name: Build documentation
uses: ./.github/workflows/docs.yaml
- name: Download documentation
uses: actions/download-artifact@v5
with:
name: docs
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: 'jaq-play'
#
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4