From e5375b77ac1f347a1a1ee7e7b48bff0cb0c4089f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 27 Apr 2020 15:32:26 -0400 Subject: [PATCH] help with base url --- .github/workflows/build.yml | 4 ++++ _config-sub.yml | 1 + _layouts/default.html | 24 ++++++++++++------------ package.json | 1 + 4 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 _config-sub.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e9b0048..8a0374cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,6 +53,10 @@ jobs: if: github.ref == 'refs/heads/master' run: npm run deploy + - name: Build site for S3 + if: github.ref == 'refs/heads/master' + run: npm run build:prod:sub + - name: Deploy to S3 if: github.ref == 'refs/heads/master' uses: jakejarvis/s3-sync-action@master diff --git a/_config-sub.yml b/_config-sub.yml new file mode 100644 index 00000000..6177543b --- /dev/null +++ b/_config-sub.yml @@ -0,0 +1 @@ +baseurl: /help \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index d6fa777b..448ab50c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -14,17 +14,17 @@ - - - - - - - + + + + + @@ -44,7 +44,7 @@