mirror of
https://github.com/Dasemu/NavFrame.git
synced 2026-11-26 15:26:05 +00:00
Prepare worldwide offline package campaign
This commit is contained in:
1 parent
989bcda281
commit
463c74efe2
7 files changed
+807
-4
No files matched your search
@@ -1,6 +1,7 @@
|
||||
name: Android build and checks
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: Build worldwide offline regions
|
||||
on:
|
||||
push:
|
||||
tags: ['offline-bootstrap-andorra', 'offline-bootstrap-andorra-*']
|
||||
tags: ['offline-bootstrap-andorra', 'offline-bootstrap-andorra-*', 'offline-global-2026-09-batch-*']
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
regions:
|
||||
@@ -23,9 +23,14 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- id: matrix
|
||||
env:
|
||||
CAMPAIGN_TAG: ${{ github.ref_name }}
|
||||
REGION_IDS: ${{ github.event_name == 'push' && 'andorra' || inputs.regions }}
|
||||
run: |
|
||||
value=$(python3 tools/offline/global-regions.py matrix "$REGION_IDS")
|
||||
if [[ "$CAMPAIGN_TAG" == offline-global-2026-09-batch-* && "${{ github.event_name }}" == push ]]; then
|
||||
value=$(python3 tools/offline/campaign.py matrix "$CAMPAIGN_TAG")
|
||||
else
|
||||
value=$(python3 tools/offline/global-regions.py matrix "$REGION_IDS")
|
||||
fi
|
||||
echo "value=$value" >> "$GITHUB_OUTPUT"
|
||||
build:
|
||||
needs: plan
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Refresh offline package catalog
|
||||
on:
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
contents: write
|
||||
jobs:
|
||||
catalog:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
concurrency:
|
||||
group: offline-catalog-publication
|
||||
cancel-in-progress: false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Rebuild index from all published regional releases
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: python3 tools/offline/publish-catalog.py
|
||||
Reference in new issue
Block a user