-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 904 Bytes
/
main.yml
File metadata and controls
30 lines (26 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Generate Sitemap
on:
push:
branches: [main] # Certifique-se de que sua branch principal se chama main
jobs:
sitemap_job:
runs-on: ubuntu-latest
name: Generate a sitemap
permissions:
contents: write # Permissão para o GitHub gravar o arquivo no seu repositório
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate the sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://bernardoyt1093-wq.github.io/Js-Master/
- name: Commit and push if changed
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add sitemap.xml
git commit -m "Automated sitemap update" || exit 0
git push