File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,14 @@ jobs:
33
33
34
34
- name : Checkout
35
35
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
36
+ - name : Build
37
+ run : ./build.sh
36
38
- name : Setup Pages
37
39
uses : actions/configure-pages@f156874f8191504dae5b037505266ed5dda6c382 # v3.0.6
38
40
- name : Upload artifact
39
41
uses : actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2.0.0
40
42
with :
41
- path : site/
43
+ path : BUILT/ site/
42
44
- name : Deploy to GitHub Pages
43
45
id : deployment
44
46
uses : actions/deploy-pages@9dbe3824824f8a1377b8e298bafde1a50ede43e5 # v2.0.4
Original file line number Diff line number Diff line change 33
33
34
34
- name : Build
35
35
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
38
37
39
38
- uses : dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
40
39
id : changes
49
48
# 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"
50
49
uses : rossjrw/pr-preview-action@183082fd714654433c8e2f6daedbfb4f20f2a94a # v1.4.4
51
50
with :
52
- source-dir : . /site/
51
+ source-dir : BUILT /site/
53
52
# https://github.com/www-learn-study/previews
54
53
deploy-repository : www-learn-study/previews
55
54
# 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