diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 0caf823..d229842 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -12,10 +12,10 @@ on: concurrency: preview-${{ github.ref }} -permissions: - contents: read - pages: write - actions: write +permissions: write-all + # contents: write # TODO: do we want this? + # pages: write + # actions: write jobs: deploy-preview: @@ -38,8 +38,8 @@ jobs: env: HUGO_ENVIRONMENT: preview run: | - echo "Building site with baseURL: https://${{ github.repository_owner }}.github.io/${{ github.repository }}/pr-preview/pr-${{ github.event.number }}/" - hugo --environment preview --baseURL "https://${{ github.repository_owner }}.github.io/${{ github.repository }}/pr-preview/pr-${{ github.event.number }}/" --minify -d public + echo "Building site with baseURL: https://${{ github.repository_owner }}.github.io/pr-preview/pr-${{ github.event.number }}/" + hugo --environment preview --baseURL "https://${{ github.repository_owner }}.github.io/pr-preview/pr-${{ github.event.number }}/" --minify -d public - name: List Public Directory if: github.event.action != 'closed' @@ -51,11 +51,12 @@ jobs: if: github.event.action != 'closed' run: | echo "Checking base URL in generated HTML files:" - grep -r "https://${{ github.repository_owner }}.github.io/${{ github.repository }}/pr-preview/pr-${{ github.event.number }}/" public || echo "Base URL not found in some files" + grep -r "https://${{ github.repository_owner }}.github.io/pr-preview/pr-${{ github.event.number }}/" public || echo "Base URL not found in some files" - name: Deploy PR Preview uses: rossjrw/pr-preview-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} source-dir: ./public - action: auto \ No newline at end of file + pages-base-url: ${{ github.repository_owner }}.github.io + action: auto diff --git a/content/_index.md b/content/_index.md index 7677ffa..d0845d8 100644 --- a/content/_index.md +++ b/content/_index.md @@ -13,7 +13,7 @@ hero_section: btn_link: / - title: Neurodata Without Borders subtitle: Version 2.0 FINAL Now Available - btn_text: Read More + btn_text: This is a test btn_link: / banner_section: enable: true