Skip to content

Commit 148d74c

Browse files
authored
Add files via upload
1 parent 80b2e31 commit 148d74c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Generate Sitemap
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
generate-sitemap:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '14'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Generate sitemap
25+
run: npm run generate-sitemap
26+
27+
- name: Commit sitemap.xml
28+
run: |
29+
git config --local user.email "action@github.com"
30+
git config --local user.name "GitHub Action"
31+
git add sitemap.xml
32+
git commit -m "Generate sitemap.xml"
33+
git push

0 commit comments

Comments
 (0)