File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,12 +33,14 @@ jobs:
3333
3434 - name : Checkout
3535 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
36+ - name : Build
37+ run : ./build.sh
3638 - name : Setup Pages
3739 uses : actions/configure-pages@f156874f8191504dae5b037505266ed5dda6c382 # v3.0.6
3840 - name : Upload artifact
3941 uses : actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2.0.0
4042 with :
41- path : site/
43+ path : BUILT/ site/
4244 - name : Deploy to GitHub Pages
4345 id : deployment
4446 uses : actions/deploy-pages@9dbe3824824f8a1377b8e298bafde1a50ede43e5 # v2.0.4
Original file line number Diff line number Diff line change 3333
3434 - name : Build
3535 if : ${{ github.event.action != 'closed' }} # Skipping these steps if the PR has been closed
36- # run: ./build.sh
37- run : echo "Hi! Buidling..."
36+ run : ./build.sh
3837
3938 - uses : dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
4039 id : changes
4948 # TODO Re-check if https://github.com/actions/deploy-pages#inputs- support of "preview" is no longer "only in alpha currently and is not available to the public"
5049 uses : rossjrw/pr-preview-action@183082fd714654433c8e2f6daedbfb4f20f2a94a # v1.4.4
5150 with :
52- source-dir : . /site/
51+ source-dir : BUILT /site/
5352 # https://github.com/www-learn-study/previews
5453 deploy-repository : www-learn-study/previews
5554 # custom-url: https://www-learn-study.github.io/previews
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euxo pipefail
3+
4+ # TODO Use Makefile? https://bob.build? https://magefile.org? Build lessons! ;)
5+
6+ mkdir -p BUILT/site/
7+
8+ # TODO Rename site/ to static/
9+ find site/ -type f -exec ln -f {} BUILT/site \;
You can’t perform that action at this time.
0 commit comments