File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Generate Sitemap
2+
23on :
34 push :
4- branches : [main]
5+ branches : [main] # Certifique-se de que sua branch principal se chama main
6+
57jobs :
68 sitemap_job :
79 runs-on : ubuntu-latest
810 name : Generate a sitemap
11+ permissions :
12+ contents : write # Permissão para o GitHub gravar o arquivo no seu repositório
913 steps :
10- - uses : actions/checkout@v3
14+ - name : Checkout the repo
15+ uses : actions/checkout@v3
1116 with :
1217 fetch-depth : 0
18+
1319 - name : Generate the sitemap
1420 uses : cicirello/generate-sitemap@v1
1521 with :
16- base-url-path : https://github.io
22+ base-url-path : https://bernardoyt1093-wq.github.io/Js-Master/
23+
24+ - name : Commit and push if changed
25+ run : |
26+ git config --global user.name "github-actions[bot]"
27+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
28+ git add sitemap.xml
29+ git commit -m "Automated sitemap update" || exit 0
30+ git push
You can’t perform that action at this time.
0 commit comments