Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions .github/workflows/simple-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,40 @@ env:

jobs:
build:
uses: ./.github/workflows/build-book.yaml
# uses: ./.github/workflows/build-book.yaml
# uses: brian-rose/cookbook-actions/.github/workflows/build-book.yaml@myst
# with:
# environment_name: cookbook-dev
# build_command: 'myst build --execute --html'
# runs-on: ubuntu-latest
# defaults:
# run:
# shell: bash -leo pipefail {0}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 18.x
# - name: Setup environment with micromamba
# uses: mamba-org/setup-micromamba@v2
# with:
# environment-file: environment.yml
# - name: Build the book
# run: myst build --execute --html
# - name: Zip the book
# run: |
# set -x
# set -e
# if [ -f book.zip ]; then
# rm -rf book.zip
# fi
# zip -r book.zip _build/html
runs-on: ubuntu-latest
defaults:
run:
shell: bash -leo pipefail {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Setup environment with micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
- name: Build the book
run: myst build --execute --html
- name: Zip the book
run: |
set -x
set -e
if [ -f book.zip ]; then
rm -rf book.zip
fi
zip -r book.zip _build/html

# - name: Upload zipped book artifact
# uses: actions/upload-artifact@v4
# with:
# name: book-zip
# path: ./book.zip
- name: Upload zipped book artifact
uses: actions/upload-artifact@v4
with:
name: book-zip
path: ./book.zip

deploy:
needs: build
Expand Down