This commit is contained in:
parent
c462f89934
commit
bd18aa2a3a
3 changed files with 3 additions and 23 deletions
|
|
@ -1,8 +1,5 @@
|
||||||
name: dev release
|
name: dev release
|
||||||
|
|
||||||
# Publishes a dev-track build on every push to `main` (the trunk
|
|
||||||
# branch — there is no separate `dev` branch). See bread-ecosystem's
|
|
||||||
# docs/release-channels.md for the release-track policy this is part of.
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['main']
|
branches: ['main']
|
||||||
|
|
@ -23,7 +20,7 @@ jobs:
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v "$(pwd)/src:/workspace" \
|
-v "$(pwd)/src:/workspace" \
|
||||||
-w /workspace \
|
-w /workspace \
|
||||||
fedora:41 \
|
fedora:rawhide \
|
||||||
bash -c "
|
bash -c "
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
dnf install -y gcc pkgconf-pkg-config libadwaita-devel git curl
|
dnf install -y gcc pkgconf-pkg-config libadwaita-devel git curl
|
||||||
|
|
@ -36,11 +33,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd src
|
cd src
|
||||||
# Base the dev version off the latest published stable tag,
|
|
||||||
# not Cargo.toml — Cargo.toml can go stale relative to the last
|
|
||||||
# real release (seen in practice: breadbox/breadpad/breadcrumbs/
|
|
||||||
# breadpaper), which would make a dev build sort as OLDER than
|
|
||||||
# what's already installed and bakery would correctly refuse it.
|
|
||||||
LATEST_TAG="$(git ls-remote --tags --refs \
|
LATEST_TAG="$(git ls-remote --tags --refs \
|
||||||
"https://git.breadway.dev/${GITHUB_REPOSITORY}.git" 'v*' \
|
"https://git.breadway.dev/${GITHUB_REPOSITORY}.git" 'v*' \
|
||||||
| awk -F/ '{print $NF}' | sed 's/^v//' | (grep -v -- '-' || true) | sort -V | tail -1)"
|
| awk -F/ '{print $NF}' | sed 's/^v//' | (grep -v -- '-' || true) | sort -V | tail -1)"
|
||||||
|
|
@ -70,8 +62,6 @@ jobs:
|
||||||
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
||||||
ln -sfn "${VERSION}" "/srv/breadway-dl/dev/breadpad/latest"
|
ln -sfn "${VERSION}" "/srv/breadway-dl/dev/breadpad/latest"
|
||||||
|
|
||||||
# No GitHub Release upload — dev, like the other non-stable track,
|
|
||||||
# is only distributed via dl.breadway.dev/dev/.
|
|
||||||
- name: regenerate dev index.json
|
- name: regenerate dev index.json
|
||||||
env:
|
env:
|
||||||
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
||||||
|
|
@ -82,8 +72,6 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
rm -rf /tmp/bread-ecosystem-ci-* 2>/dev/null || true
|
rm -rf /tmp/bread-ecosystem-ci-* 2>/dev/null || true
|
||||||
# mktemp: a fixed clone path races when multiple repos' dev/beta
|
|
||||||
# workflows run close together on the same self-hosted runner.
|
|
||||||
ECOSYSTEM_CI_DIR="$(mktemp -d /tmp/bread-ecosystem-ci-XXXXXX)"
|
ECOSYSTEM_CI_DIR="$(mktemp -d /tmp/bread-ecosystem-ci-XXXXXX)"
|
||||||
git clone --branch main https://git.breadway.dev/Breadway/bread-ecosystem.git "${ECOSYSTEM_CI_DIR}"
|
git clone --branch main https://git.breadway.dev/Breadway/bread-ecosystem.git "${ECOSYSTEM_CI_DIR}"
|
||||||
TRACK=dev bash "${ECOSYSTEM_CI_DIR}/scripts/gen-index.sh"
|
TRACK=dev bash "${ECOSYSTEM_CI_DIR}/scripts/gen-index.sh"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
name: beta (rc) release
|
name: beta (rc) release
|
||||||
|
|
||||||
# Publishes a beta-track build for any `vX.Y.Z-rc.N` prerelease tag
|
|
||||||
# pushed to `main` — there is no separate `beta` branch; "freezing" is
|
|
||||||
# just pausing pushes to main while an RC gets tested. See
|
|
||||||
# bread-ecosystem's docs/release-channels.md for the release-track policy.
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ['v*']
|
tags: ['v*']
|
||||||
|
|
@ -25,7 +21,7 @@ jobs:
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v "$(pwd)/src:/workspace" \
|
-v "$(pwd)/src:/workspace" \
|
||||||
-w /workspace \
|
-w /workspace \
|
||||||
fedora:41 \
|
fedora:rawhide \
|
||||||
bash -c "
|
bash -c "
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
dnf install -y gcc pkgconf-pkg-config libadwaita-devel git curl
|
dnf install -y gcc pkgconf-pkg-config libadwaita-devel git curl
|
||||||
|
|
@ -51,8 +47,6 @@ jobs:
|
||||||
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
||||||
ln -sfn "${VERSION}" "/srv/breadway-dl/beta/breadpad/latest"
|
ln -sfn "${VERSION}" "/srv/breadway-dl/beta/breadpad/latest"
|
||||||
|
|
||||||
# No GitHub Release upload — beta, like dev, is only distributed via
|
|
||||||
# dl.breadway.dev/beta/.
|
|
||||||
- name: regenerate beta index.json
|
- name: regenerate beta index.json
|
||||||
env:
|
env:
|
||||||
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
||||||
|
|
@ -63,8 +57,6 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
rm -rf /tmp/bread-ecosystem-ci-* 2>/dev/null || true
|
rm -rf /tmp/bread-ecosystem-ci-* 2>/dev/null || true
|
||||||
# mktemp: a fixed clone path races when multiple repos' dev/beta
|
|
||||||
# workflows run close together on the same self-hosted runner.
|
|
||||||
ECOSYSTEM_CI_DIR="$(mktemp -d /tmp/bread-ecosystem-ci-XXXXXX)"
|
ECOSYSTEM_CI_DIR="$(mktemp -d /tmp/bread-ecosystem-ci-XXXXXX)"
|
||||||
git clone https://git.breadway.dev/Breadway/bread-ecosystem.git "${ECOSYSTEM_CI_DIR}"
|
git clone https://git.breadway.dev/Breadway/bread-ecosystem.git "${ECOSYSTEM_CI_DIR}"
|
||||||
TRACK=beta bash "${ECOSYSTEM_CI_DIR}/scripts/gen-index.sh"
|
TRACK=beta bash "${ECOSYSTEM_CI_DIR}/scripts/gen-index.sh"
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v "$(pwd)/src:/workspace" \
|
-v "$(pwd)/src:/workspace" \
|
||||||
-w /workspace \
|
-w /workspace \
|
||||||
fedora:41 \
|
fedora:rawhide \
|
||||||
bash -c "
|
bash -c "
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
dnf install -y gcc pkgconf-pkg-config libadwaita-devel git curl
|
dnf install -y gcc pkgconf-pkg-config libadwaita-devel git curl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue