1
0
mirror of https://github.com/privacyguides/privacyguides.org.git synced 2025-08-11 21:41:10 +00:00

feat: Generate homepage topics on server side (#2766)

This commit is contained in:
2024-09-20 02:34:13 -05:00
committed by Jonah Aragon
parent ca0b544251
commit 455f18be13
7 changed files with 436 additions and 184 deletions

View File

@@ -176,6 +176,24 @@ jobs:
run: |
eval ./run.sh --build --lang=${{ inputs.lang }} "$EXTRA_FLAGS"
- name: Run index-generation.sh for top posts
if: inputs.lang == 'en'
run: |
bash index-generation.sh \
--source='https://discuss.privacyguides.net/top.json?period=weekly' \
--tag="top posts" \
--destination="./site/en/index.html" \
--count=3
- name: Run index-generation.sh for latest posts
if: inputs.lang == 'en'
run: |
bash index-generation.sh \
--source='https://discuss.privacyguides.net/latest.json' \
--tag="latest posts" \
--destination="./site/en/index.html" \
--count=12
- name: Package Website
run: |
tar -czf site-${{ inputs.config }}-${{ inputs.lang }}.tar.gz site