mirror of
				https://github.com/privacyguides/privacyguides.org.git
				synced 2025-10-31 11:36:36 +00:00 
			
		
		
		
	feat!: Include ZIM files in releases (#3102)
This commit is contained in:
		
							
								
								
									
										50
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -180,7 +180,7 @@ jobs: | ||||
|           DISCOURSE_API_KEY: ${{ secrets.RO_DISCOURSE_API_KEY }} | ||||
|         run: | | ||||
|           pip install requests | ||||
|           python generate-members.py > includes/members.md | ||||
|           python tools/generate-members.py > includes/members.md | ||||
|  | ||||
|       - name: Build Website | ||||
|         run: | | ||||
| @@ -189,7 +189,7 @@ jobs: | ||||
|       - name: Run generate-topics.sh for top posts | ||||
|         if: inputs.lang == 'en' | ||||
|         run: | | ||||
|           bash generate-topics.sh \ | ||||
|           bash tools/generate-topics.sh \ | ||||
|             --source='https://discuss.privacyguides.net/top.json?period=weekly' \ | ||||
|             --tag="top posts" \ | ||||
|             --destination="./site/en/index.html" \ | ||||
| @@ -198,7 +198,7 @@ jobs: | ||||
|       - name: Run generate-topics.sh for latest posts | ||||
|         if: inputs.lang == 'en' | ||||
|         run: | | ||||
|           bash generate-topics.sh \ | ||||
|           bash tools/generate-topics.sh \ | ||||
|             --source='https://discuss.privacyguides.net/latest.json' \ | ||||
|             --tag="latest posts" \ | ||||
|             --destination="./site/en/index.html" \ | ||||
| @@ -259,47 +259,3 @@ jobs: | ||||
|           name: members.md | ||||
|           path: includes/members.md | ||||
|           retention-days: 1 | ||||
|  | ||||
|   offline_package: | ||||
|     if: inputs.config == 'offline' && inputs.lang == 'en' | ||||
|     needs: build | ||||
|     runs-on: ubuntu-latest | ||||
|     continue-on-error: ${{ inputs.continue-on-error }} | ||||
|     permissions: | ||||
|       contents: read | ||||
|  | ||||
|     steps: | ||||
|       - uses: actions/download-artifact@v4 | ||||
|         with: | ||||
|           name: site-offline-en.tar.gz | ||||
|  | ||||
|       - run: | | ||||
|           tar -xzf site-offline-en.tar.gz | ||||
|           tar -czf offline.tar.gz site/en | ||||
|           zip -r -q offline.zip site/en | ||||
|  | ||||
|       - name: Upload tar.gz file | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           name: offline.tar.gz | ||||
|           path: offline.tar.gz | ||||
|  | ||||
|       - name: Upload zip file | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           name: offline.zip | ||||
|           path: offline.zip | ||||
|  | ||||
|       - name: Create ZIM File | ||||
|         uses: addnab/docker-run-action@v3 | ||||
|         with: | ||||
|           image: ghcr.io/openzim/zim-tools:3.1.3 | ||||
|           options: -v ${{ github.workspace }}:/data | ||||
|           run: | | ||||
|             zimwriterfs -w index.html -I assets/brand/logos/png/square/pg-yellow.png -l eng -t "Privacy Guides" -d "Your central privacy and security resource to protect yourself online." -c "Privacy Guides" -p "Jonah Aragon" -n "Privacy Guides" -e "https://github.com/privacyguides/privacyguides.org" /data/site/en /data/offline-privacy_guides.zim | ||||
|  | ||||
|       - name: Upload ZIM file | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           name: offline-privacy_guides.zim | ||||
|           path: offline-privacy_guides.zim | ||||
|   | ||||
		Reference in New Issue
	
	Block a user