Skip to content

Commit

Permalink
github: disable "full" database releases
Browse files Browse the repository at this point in the history
The full database is a lot larger and not very useful.
  • Loading branch information
wfrisch committed Dec 18, 2024
1 parent 80cd1e3 commit cbdff7b
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions .github/workflows/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,21 @@ jobs:
- name: Index (sparse)
run: python3 index.py -d idlib.sqlite

- name: Index (full)
run: |
python3 index.py -m full --no-prune -d idlib-full-unpruned.sqlite
cp idlib-full-unpruned.sqlite idlib-full.sqlite
python3 index.py --prune-only -d idlib-full.sqlite
# - name: Index (full)
# run: |
# python3 index.py -m full --no-prune -d idlib-full-unpruned.sqlite
# cp idlib-full-unpruned.sqlite idlib-full.sqlite
# python3 index.py --prune-only -d idlib-full.sqlite

# - name: Compress databases
# run: |
# zstd -10 -k idlib.sqlite
# zstd -10 -k idlib-full.sqlite
# zstd -10 -k idlib-full-unpruned.sqlite

- name: Compress databases
- name: Compress database
run: |
zstd -10 -k idlib.sqlite
zstd -10 -k idlib-full.sqlite
zstd -10 -k idlib-full-unpruned.sqlite
- name: Create Release
id: create_release
Expand All @@ -66,22 +70,22 @@ jobs:
asset_name: idlib.sqlite.zst
asset_content_type: application/octet-stream

- name: Upload idlib-full-unpruned.sqlite.zst
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./idlib-full-unpruned.sqlite.zst
asset_name: idlib-full-unpruned.sqlite.zst
asset_content_type: application/octet-stream
# - name: Upload idlib-full-unpruned.sqlite.zst
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./idlib-full-unpruned.sqlite.zst
# asset_name: idlib-full-unpruned.sqlite.zst
# asset_content_type: application/octet-stream

- name: Upload idlib-full.sqlite.zst
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./idlib-full.sqlite.zst
asset_name: idlib-full.sqlite.zst
asset_content_type: application/octet-stream
# - name: Upload idlib-full.sqlite.zst
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./idlib-full.sqlite.zst
# asset_name: idlib-full.sqlite.zst
# asset_content_type: application/octet-stream

0 comments on commit cbdff7b

Please sign in to comment.