From ad9bfb78dd078538ce1152c6e2ea4b02161c17eb Mon Sep 17 00:00:00 2001 From: rcarrata Date: Thu, 23 Jan 2025 17:57:46 +0100 Subject: [PATCH] bump artifacts --- .github/workflows/publish.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1685812..284442d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,12 +2,10 @@ name: Publish to GitHub Pages on: push: branches: [main] - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: concurrency: group: pages cancel-in-progress: true -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write @@ -21,25 +19,35 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Install Node.js uses: actions/setup-node@v3 with: node-version: '18' + - name: Install Antora run: npm i antora + - name: Generate Site run: npx antora default-site.yml - # run: npx antora content/default-site.yml - - name: Setup Pages - uses: actions/configure-pages@v3 - - name: find where the files are + + # Debug: Confirm the output directory and structure + - name: Debug directory structure run: | + echo "Current working directory:" pwd - #ls -alR . + echo "List all files and directories:" + ls -alR . + + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: content/www/ + # Update the path to the correct directory (default is ./public for Antora) + path: content/www + - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4