Create Kiwix/ZIM Download

This commit is contained in:
Jonah Aragon 2023-03-11 19:33:39 -06:00
parent 9112720140
commit 60f0a8df9f
No known key found for this signature in database

View File

@ -64,9 +64,23 @@ jobs:
name: offline.zip
path: offline.zip
- name: Create ZIM File
uses: addnab/docker-run-action@v3
with:
image: openzim/zim-tools:latest
options: -v ${{ github.workspace }}:/data
run: |
zimwriterfs -w index.html -I assets/brand/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 /data/privacy_guides.zim
- name: Upload ZIM file
uses: actions/upload-artifact@v3
with:
name: privacy_guides.zim
path: privacy_guides.zim
- name: Create release notes
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
token: ${{ secrets.REPO_TOKEN }}
artifacts: "offline.zip,offline.tar.gz"
artifacts: "offline.zip,offline.tar.gz,privacy_guides.zim"