mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Launchpad snap legs (95-104 minutes in v12.32): prepare-launchpad-source.sh archived the whole tree, 237 MB of docs, tests, translations and client code, for every architecture. The wekan part (source: .) then copied it again on Launchpad's slowest builders, and the recipe uses none of it, because the app comes from the release .zip. The snapshot now holds only what snapcraft.yaml reads: snapcraft.yaml, snap/, snap-src/, and releases/fetch.sh, check-telemetry.py, risk-baseline.json (its deny-hash list) and migrate-mongodb-to-ferretdb.mjs. That is 1.1 MB. tests/releaseSnapLaunchpadFlatten.test.cjs checks the snapshot holds the listed files and nothing else, and checks against the real snapcraft.yaml that every project path it reads is in the list. Git history that was fetched and never read: - snap-launchpad cloned the full history (fetch-depth: 0, 447 MB) because remote-build rejects shallow repositories. What it uploads is the fresh one-commit repository made from git archive, so a shallow checkout is enough. - bump only reads the tree and pushes one commit on top: shallow. - prepare fetched history to see whether the release tag already existed. It now asks GitHub with git ls-remote, which also works on a re-run. - update-ondra-gantt-repos cloned ~160 MB of history per variant repository to add one commit: shallow. - release.yml (chart-releaser) ran on every push to main with a full clone, but this repository has no charts/; the chart is published to wekan/charts by release-all.yml. It now runs only when charts/ changes. The wekan/charts checkouts keep fetch-depth: 0 because they need the gh-pages branch, and that repository is 15 MB. Thanks to xet7 !
37 lines
949 B
YAML
37 lines
949 B
YAML
name: Release Charts
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
# This repository has no charts/ directory: the Helm chart is published to
|
|
# wekan/charts by release-all.yml. Without this filter every push to main
|
|
# cloned the full history (447 MB) to find no chart to release.
|
|
paths:
|
|
- 'charts/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
release:
|
|
timeout-minutes: 30
|
|
permissions:
|
|
contents: write # for helm/chart-releaser-action to push chart release and create a release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@v1.7.0
|
|
env:
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|