Skip to content

Commit e49513b

Browse files
Update xml generator
Needed to be updated from old url
1 parent e3220d7 commit e49513b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/github-actions.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# .github/workflows/sitemap.yml
22
name: Generate Sitemap
33

4+
# 1) Explicitly grant write permissions for contents (so “add-and-commit” can push)
5+
permissions:
6+
contents: write
7+
48
on:
59
push:
610
branches:
@@ -11,16 +15,16 @@ jobs:
1115
runs-on: ubuntu-latest
1216

1317
steps:
14-
# 1. Check out your code
18+
# 2) Check out the repo
1519
- uses: actions/checkout@v4
1620

17-
# 2. Generate sitemap (defaults: path-to-root=".", sitemap-format="xml", include-html/pdf=true, etc.)
21+
# 3) Generate sitemap
1822
- name: Generate sitemap
1923
uses: cicirello/generate-sitemap@v1.10.0
2024
with:
21-
base-url-path: https://nera-w.github.io/
25+
base-url-path: https://nera-w.com/
2226

23-
# 3. Commit the updated sitemap.xml back to the repo root
27+
# 4) Commit sitemap.xml back (now that GITHUB_TOKEN has write perms)
2428
- name: Commit sitemap.xml
2529
uses: EndBug/add-and-commit@v7
2630
with:

0 commit comments

Comments
 (0)