Skip to content

Build release zips

Build release zips #22

Workflow file for this run

name: Build release zips
# Produces the deployment zips. The build logic lives in
# scripts/build_zips.py (a tested script -- tests/test_build_zips.py runs
# the real build on every PR); this workflow is just the trigger + upload.
on:
workflow_dispatch:
release:
types: [created]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install pyyaml
- name: Build zips
run: python scripts/build_zips.py dist
- name: Attach to release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: dist/*.zip
- name: Upload as artifacts
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: cultures-zips
path: dist/*.zip
retention-days: 7