From cb9d58c34397ce832642f5d125bbcea8d9fa1f81 Mon Sep 17 00:00:00 2001 From: StuckDuck Date: Fri, 2 Aug 2024 19:33:15 +0200 Subject: [PATCH] should use apt to install stuff --- .github/workflows/pages-upload.yml | 8 ++++++-- _plugins/photo_gen.rb | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pages-upload.yml b/.github/workflows/pages-upload.yml index 785fcad..28a0c68 100644 --- a/.github/workflows/pages-upload.yml +++ b/.github/workflows/pages-upload.yml @@ -1,4 +1,4 @@ -name: Deploy Jekyll site to Pages +name: Upload to GitHub Pages on: push: @@ -24,7 +24,11 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v5 - - name: Build with Jekyll + - name: Checkout photos + uses: actions/checkout@v4 + with: + repository: 's7uck/photos' + - name: Build site # Outputs to the './_site' directory by default run: jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" env: diff --git a/_plugins/photo_gen.rb b/_plugins/photo_gen.rb index f4d838d..cb3d51c 100644 --- a/_plugins/photo_gen.rb +++ b/_plugins/photo_gen.rb @@ -3,7 +3,7 @@ module Jekyll class PhotoPageGenerator < Generator def generate(site) - photos_dir = "/home/lubuntu/Immagini/Gallery" # temp + photos_dir = "photos" # aka my repo s7uck/photos output_url = "/photos" photos = [] FileUtils.mkdir_p(File.join(site.dest, output_url))