From f0625be111c3e0de676ae7980ba013970e6fccc2 Mon Sep 17 00:00:00 2001 From: Luan Himmlisch Date: Fri, 27 Sep 2024 22:26:23 -0600 Subject: [PATCH] Setup deployment --- .github/workflows/jekyll.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 63f35ac..5b5ff33 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -24,10 +24,14 @@ jobs: - name: Run npm build run: npm run build + + - name: Copying build output + run: | + mkdir -p _site + cp -r build/* _site/ - name: Build the site in the jekyll/builder container run: | docker run \ - -v ${{ github.workspace }}:/srv/jekyll \ - -v ${{ github.workspace }}/build:/srv/jekyll/build \ - jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --destination /srv/jekyll/build --future" + -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ + jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"