-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (48 loc) · 1.59 KB
/
update_database.yml
File metadata and controls
58 lines (48 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Update Signature Database
on:
schedule:
- cron: '0 0 * * 0' # Run weekly on Sunday at midnight
workflow_dispatch: # Allow manual triggering
permissions:
contents: write
pages: write
id-token: write
jobs:
update-database:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Generate updated signatures
run: |
python python_scripts/generate_signatures.py --output signatures.json --count 150
- name: Prepare update files
run: |
python python_scripts/prepare_update.py --input signatures.json --output-dir public
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
- name: Upload to GitHub Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: public/signatures.json
asset_name: signatures.json
tag: database-latest
overwrite: true
- name: Upload manifest to GitHub Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: public/manifest.json
asset_name: manifest.json
tag: database-latest
overwrite: true