We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d489f9f commit cb12f07Copy full SHA for cb12f07
1 file changed
.github/workflows/on-commit.yaml
@@ -14,17 +14,18 @@ jobs:
14
15
- name: Install and build exercises
16
run: |
17
- mkdir gh-pages
+ mkdir -p gh-pages/u1
18
zip -r gh-pages/mdc.tutorial.zip u1/ex0 -x 'readme.md' -x '*.png'
19
20
for dir in ./u1/ex*/; do
21
- mkdir -p gh-pages/u1/"$dir"
22
- cd "$dir"
+ mkdir -p gh-pages/u1/$(basename "$dir")
+ pushd "$dir"
23
npm install
24
npm run build
25
- mv dist ../gh-pages/u1/"$dir"
26
- cd ../
+ mv dist ../../gh-pages/u1/$(basename "$dir")
+ pop
27
done
28
+
29
- name: Deploy 🚀
30
uses: JamesIves/github-pages-deploy-action@v4
31
with:
0 commit comments