Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitAuto: Make our sitemap dynamic by automatically including each page on GitHub actions #169

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Changes from 16 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8d9e6d0
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 1, 2025
6172c7a
Update package.json
gitauto-for-dev[bot] Jan 1, 2025
cb20293
Update package.json
gitauto-for-dev[bot] Jan 3, 2025
6bc3a66
Update package.json
gitauto-for-dev[bot] Jan 3, 2025
525196a
Update package.json
gitauto-for-dev[bot] Jan 3, 2025
6895f26
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
70173a1
Update package.json
gitauto-for-dev[bot] Jan 3, 2025
9805aac
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
4a2e87f
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
86f8d50
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
6c0e80c
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
ad98643
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
c7c058f
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
68ac7d8
Update generate-sitemap.yml
hiroshinishio Jan 3, 2025
ab617c0
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
75ec79a
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
6cbb7f8
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
256a7b7
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
28fb34a
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
f7199c3
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
a50615b
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
e8abfda
Update .github/workflows/generate-sitemap.yml
gitauto-for-dev[bot] Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/generate-sitemap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Generate Sitemap

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check out to the branch NOT main

Copy link
Author

@gitauto-for-dev gitauto-for-dev bot Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved your feedback! Looks good?


- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm install

- name: Install next-sitemap
run: npm install next-sitemap

- name: Generate Sitemap
run: npx next-sitemap
hiroshinishio marked this conversation as resolved.
Show resolved Hide resolved
hiroshinishio marked this conversation as resolved.
Show resolved Hide resolved

- name: Commit sitemap
run: |
git config --local user.name 'github-actions'
git config --local user.email 'github-actions@github.com'
git add ./app/sitemap.xml
git commit -m 'chore: update sitemap' || echo 'No changes to commit'
git push origin main
Loading