Skip to content

Commit

Permalink
Ensure that the sitemap contains itself
Browse files Browse the repository at this point in the history
  • Loading branch information
norwd authored Oct 14, 2024
1 parent 294fcd3 commit b7a64d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ jobs:
EOF
- name: "Generate a sitemap.txt file"
run: find . -type f -printf "${BASE_URL}/%P\n" | sed -e 's/\(\.html\)*$//g' | sort --unique | tee sitemap.txt
env:
BASE_URL: '${{ steps.configure-pages.outputs.base_url }}'
env: { BASE_URL: '${{ steps.configure-pages.outputs.base_url }}' }
run: |
touch sitemap.txt # this ensures that the sitemap detects itself
find . -type f -printf "${BASE_URL}/%P\n" | sed -e 's/\(\.html\)*$//g' | sort --unique | tee -a sitemap.txt
- name: "Create a Pages Artifact"
uses: actions/upload-pages-artifact@v1
Expand Down

0 comments on commit b7a64d5

Please sign in to comment.