Skip to content

Commit

Permalink
enable cbtfgen in gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Feb 19, 2024
1 parent 2e8bd43 commit 6db6b39
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/cbtfgen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build CBTF Artifact from public site

on:
workflow_dispatch:

jobs:
# Build job
download:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- uses: docker/setup-buildx-action@v2
- name: Run build
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/cs357/textbook-devel:latest
options: -v ${{ github.workspace }}:/srv/jekyll
shell: bash
run: cd /srv/jekyll/_cbtf && ls && ./create.sh
- uses: actions/upload-artifact@v4
with:
name: build
path: /srv/jekyll/_cbtf/output/ # or path/to/artifact
2 changes: 1 addition & 1 deletion Dockerfile.devel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ruby:2.7.7
ENV NODE_VERSION=20.11.0
RUN apt update && apt install -y curl build-essential net-tools
RUN apt update && apt install -y curl build-essential net-tools httrack
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
ENV NVM_DIR=/root/.nvm
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
Expand Down

0 comments on commit 6db6b39

Please sign in to comment.