diff --git a/.github/workflows/publish-pages.yml b/.github/workflows/publish-pages.yml index dd7d6a2..5d6bf27 100644 --- a/.github/workflows/publish-pages.yml +++ b/.github/workflows/publish-pages.yml @@ -69,6 +69,21 @@ jobs: env: MARP_USER: root:root + - name: Add lab archive for local download + run: | + mkdir site/lab_archives + mkdir temp_labs + for DEMO_DIR in demos/* + do + DEMO_NAME="${DEMO_DIR##*/}" + mkdir temp_labs/${DEMO_NAME} + mkdir temp_labs/${DEMO_NAME}/.devcontainer + mkdir temp_labs/${DEMO_NAME}/demos + cp -r .devcontainer/${DEMO_NAME}/* temp_labs/${DEMO_NAME}/.devcontainer/ + cp -r demos/${DEMO_NAME}/ temp_labs/${DEMO_NAME}/demos/ + tar -czvf site/lab_archives/${DEMO_NAME}.tar.gz temp_labs/${DEMO_NAME} + done + # - name: setup node.js 🏗️ # uses: actions/setup-node@v4 # with: