From 3771265a82b9722bbd4a59cc1bb5ceac98ee6497 Mon Sep 17 00:00:00 2001 From: Luan Himmlisch Date: Fri, 27 Sep 2024 22:31:28 -0600 Subject: [PATCH] Fixed 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 ca4f8ff..803cccc 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 dist/* _site/ - name: Build the site in the jekyll/builder container run: | docker run \ - -v ${{ github.workspace }}:/srv/jekyll \ - -v ${{ github.workspace }}/dist:/srv/jekyll/dist \ - jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --destination /srv/jekyll/dist --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"