Skip to content

Commit

Permalink
Adds ability to link lastmod of sitemap.xml to git commits (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Sep 27, 2024
1 parent 1f78b06 commit 7e57a1b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Support
uses: actions/checkout@v4
with:
repository: masesgroup/WebSitesSupport
path: WebSitesSupport
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Setup IndexNow # Generate files dynamically to prevent them from being leaked in public repositories.
Expand All @@ -38,6 +45,10 @@ jobs:
with:
source: ./docs/
destination: ./_site
- name: Sitemap lastmod replacer
shell: pwsh
run: ./WebSitesSupport/SitemapLastmodReplacer.ps1 -baseUrl https://jnet.masesgroup.com -baseFolder ${{ github.workspace }}/docs/ -inSitemapFile ${{ github.workspace }}/_site/sitemap.xml -outSitemapFile ${{ github.workspace }}/sitemap.xml
- run: sudo cp ${{ github.workspace }}/sitemap.xml ${{ github.workspace }}/_site/sitemap.xml
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

Expand Down

0 comments on commit 7e57a1b

Please sign in to comment.