mirror of
				https://github.com/privacyguides/privacyguides.org.git
				synced 2025-10-31 11:36:36 +00:00 
			
		
		
		
	feat!: Add list of monthly/annual members to website (#2927)
Signed-off-by: blacklight447 <niek@privacyguides.org> Signed-off-by: Daniel Gray <dngray@privacyguides.org> Signed-off-by: Freddy <freddy@privacyguides.org>
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/build-pr.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build-pr.yml
									
									
									
									
										vendored
									
									
								
							| @@ -72,6 +72,8 @@ jobs: | ||||
|       continue-on-error: false | ||||
|       privileged: ${{ fromJSON(needs.metadata.outputs.privileged) }} | ||||
|       strict: true | ||||
|     secrets: | ||||
|       RO_DISCOURSE_API_KEY: ${{ secrets.RO_DISCOURSE_API_KEY }} | ||||
|  | ||||
|   build_i18n: | ||||
|     if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:build i18n') }} | ||||
|   | ||||
							
								
								
									
										27
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -30,6 +30,9 @@ on: | ||||
|       cache: | ||||
|         type: boolean | ||||
|         default: true | ||||
|     secrets: | ||||
|       RO_DISCOURSE_API_KEY: | ||||
|         required: false | ||||
|  | ||||
| permissions: | ||||
|   contents: read | ||||
| @@ -172,23 +175,31 @@ jobs: | ||||
|           sudo apt install pngquant | ||||
|           echo "EXTRA_FLAGS=""$EXTRA_FLAGS" --cmd=mkdocs"" >> "$GITHUB_ENV" | ||||
|  | ||||
|       - name: Generate Donating Members List | ||||
|         continue-on-error: true | ||||
|         env: | ||||
|           DISCOURSE_API_KEY: ${{ secrets.RO_DISCOURSE_API_KEY }} | ||||
|         run: | | ||||
|           pip install requests | ||||
|           python generate-members.py > includes/members.md | ||||
|  | ||||
|       - name: Build Website | ||||
|         run: | | ||||
|           eval ./run.sh --build --lang=${{ inputs.lang }} "$EXTRA_FLAGS" | ||||
|  | ||||
|       - name: Run index-generation.sh for top posts | ||||
|       - name: Run generate-topics.sh for top posts | ||||
|         if: inputs.lang == 'en' | ||||
|         run: | | ||||
|           bash index-generation.sh \ | ||||
|           bash generate-topics.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 | ||||
|       - name: Run generate-topics.sh for latest posts | ||||
|         if: inputs.lang == 'en' | ||||
|         run: | | ||||
|           bash index-generation.sh \ | ||||
|           bash generate-topics.sh \ | ||||
|             --source='https://discuss.privacyguides.net/latest.json' \ | ||||
|             --tag="latest posts" \ | ||||
|             --destination="./site/en/index.html" \ | ||||
| @@ -259,6 +270,14 @@ jobs: | ||||
|           path: site-${{ inputs.config }}-${{ inputs.lang }}.tar.gz | ||||
|           retention-days: 1 | ||||
|  | ||||
|       - name: Upload members list | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         if: inputs.lang == 'en' | ||||
|         with: | ||||
|           name: members.md | ||||
|           path: includes/members.md | ||||
|           retention-days: 1 | ||||
|  | ||||
|   offline_package: | ||||
|     if: inputs.config == 'offline' && inputs.lang == 'en' | ||||
|     needs: build | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/workflows/publish-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/publish-release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -63,6 +63,8 @@ jobs: | ||||
|       context: production | ||||
|       continue-on-error: false | ||||
|       cache: false | ||||
|     secrets: | ||||
|       RO_DISCOURSE_API_KEY: ${{ secrets.RO_DISCOURSE_API_KEY }} | ||||
|  | ||||
|   build_blog: | ||||
|     needs: submodule | ||||
|   | ||||
							
								
								
									
										8
									
								
								.github/workflows/update-discussions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/update-discussions.yml
									
									
									
									
										vendored
									
									
								
							| @@ -55,17 +55,17 @@ jobs: | ||||
|           source: /en/index.html | ||||
|           target: ./site/en/ | ||||
|  | ||||
|       - name: Run index-generation.sh for top posts | ||||
|       - name: Run generate-topics.sh for top posts | ||||
|         run: | | ||||
|           bash index-generation.sh \ | ||||
|           bash generate-topics.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 | ||||
|       - name: Run generate-topics.sh for latest posts | ||||
|         run: | | ||||
|           bash index-generation.sh \ | ||||
|           bash generate-topics.sh \ | ||||
|             --source='https://discuss.privacyguides.net/latest.json' \ | ||||
|             --tag="latest posts" \ | ||||
|             --destination="./site/en/index.html" \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user