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"