Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Retire insider-drop.yml (daily drops ended with the Insider tier); member-release is the token's only home
islandmed445edbb25b79
diff --git a/.github/workflows/insider-drop.yml b/.github/workflows/insider-drop.ymldeleted file mode 100644index 649a2060..00000000--- a/.github/workflows/insider-drop.yml+++ /dev/null@@ -1,184 +0,0 @@-# Insider daily drop (tools/drops/drops.py): every day it builds sculptforge, makes the day's candidates (seeded by-# the date), gates them on the standard test sculpt, packs the best one as an .sfpack and-# - posts it to #insiders (DISCORD_INSIDERS_WEBHOOK; skipped quietly when unset),-# - commits it to the private repo islandmed/sculptforge-insiders under drops/YYYY/MM/<date>/ (INSIDERS_REPO_TOKEN:-# a fine-grained token for that one repository with Contents: Read and write; skipped when unset).-# On the 1st it also bundles last month's drops into "Insider Pack YYYY-MM" for Supporters (#members through-# DISCORD_MEMBERS_WEBHOOK, kept under bundles/ in the private repo) and schedules it in the public pack listing-# (listing.json on this repository's `packs` branch) for three months after the month ends. Each run publishes-# the bundles whose public date has come: their .sfpack goes next to the listing and is marked released.-# Hold mode (the default for drops dated before HOLD_UNTIL, or while the repository variable DROPS_HOLD is "true"):-# the drop is built, uploaded as the run's artifact drop-<date> for the coordinator to review and committed to the-# insider repository marked held, but not posted or bundled. Run this workflow by hand with that date and-# approve=true to release it: the committed drop (the one reviewed, not a new one) is posted and joins the bundle.-# Only this repository's own code runs; no pull request or issue input reaches it. INSIDERS_REPO_TOKEN lives only in-# the GitHub Environment "member-drops" (deployment: main only), so a run from any other branch can't read it; the-# token reaches the insider checkout and the push step only (never left in a git config the build could read).-name: Insider drop--on:- schedule:- - cron: "23 14 * * *"- workflow_dispatch:- inputs:- date:- description: "Drop date YYYY-MM-DD (default today, UTC)"- required: false- month:- description: "Also bundle this month YYYY-MM (default: last month, on the 1st only)"- required: false- approve:- description: "Approve the held drop of `date` and post it (makes nothing new)"- type: boolean- default: false--permissions:- contents: write # the `packs` branch (public listing)--concurrency:- group: insider-drop--jobs:- drop:- runs-on: ubuntu-24.04- timeout-minutes: 60- environment: member-drops- env:- HOLD_UNTIL: "2026-11-09" # the first real drops wait for the coordinator's approval- HAS_INSIDERS: ${{ secrets.INSIDERS_REPO_TOKEN != '' }}- CCACHE_DIR: ${{ github.workspace }}/.ccache- CCACHE_BASEDIR: ${{ github.workspace }}- CCACHE_MAXSIZE: 500M- CCACHE_DEPEND: 'true'- steps:- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1- - name: Dates- env:- IN_DATE: ${{ inputs.date }}- IN_MONTH: ${{ inputs.month }}- IN_APPROVE: ${{ inputs.approve }}- VAR_HOLD: ${{ vars.DROPS_HOLD }}- run: |- DATE="${IN_DATE:-$(date -u +%F)}"- [[ "$DATE" =~ ^20[0-9][0-9]-[01][0-9]-[0-3][0-9]$ ]] || { echo "bad date '$DATE'"; exit 1; }- MONTH="$IN_MONTH"- if [ -z "$MONTH" ] && [ "${DATE:8:2}" = "01" ]; then MONTH=$(date -u -d "$DATE -1 day" +%Y-%m); fi- [ -z "$MONTH" ] || [[ "$MONTH" =~ ^20[0-9][0-9]-[01][0-9]$ ]] || { echo "bad month '$MONTH'"; exit 1; }- echo "DATE=$DATE" >> "$GITHUB_ENV"- echo "DROP_DIR=drops/${DATE:0:4}/${DATE:5:2}/$DATE" >> "$GITHUB_ENV"- echo "MONTH=$MONTH" >> "$GITHUB_ENV"- if [ "$IN_APPROVE" = "true" ]; then MODE=approve- elif [[ "$DATE" < "$HOLD_UNTIL" ]] || [ "$VAR_HOLD" = "true" ]; then MODE=hold- else MODE=post; fi- echo "MODE=$MODE" >> "$GITHUB_ENV"- echo "$DATE: $MODE"- - name: Insider repository- if: env.HAS_INSIDERS == 'true'- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1- with:- repository: islandmed/sculptforge-insiders- token: ${{ secrets.INSIDERS_REPO_TOKEN }}- path: insiders- persist-credentials: false- - name: Already done today?- if: env.MODE != 'approve'- run: |- if [ -f "insiders/$DROP_DIR/drop.json" ]; then echo "SKIP_DROP=1" >> "$GITHUB_ENV"; echo "$DATE already dropped"; fi- - name: Dependencies- if: env.MODE != 'approve' || env.MONTH != '' # approving only posts what is already built- run: |- sudo ./packaging/linux/install-build-deps.sh- sudo apt-get install -y --no-install-recommends ccache xvfb libgl1-mesa-dri- - name: Compiler cache (restore; CI's Linux cache)- if: env.MODE != 'approve' || env.MONTH != ''- uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0- with:- path: .ccache- key: ccache-ci-linux-x86_64.${{ github.sha }}- restore-keys: ccache-ci-linux-x86_64.- - name: Build sculptforge and sculptforge-cli- if: env.MODE != 'approve' || env.MONTH != ''- run: |- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DSCULPTFORGE_USE_SYSTEM_SDL=OFF -DSCULPTFORGE_BUILD_TESTS=OFF \- -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache- cmake --build build --target sculptforge sculptforge-cli --parallel 4- - name: Make the drop- if: env.SKIP_DROP != '1' && env.MODE != 'approve'- run: |- mkdir -p insiders/drops- xvfb-run -a -s "-screen 0 1280x1024x24" env LIBGL_ALWAYS_SOFTWARE=1 \- python3 tools/drops/drops.py daily --date "$DATE" --out "$RUNNER_TEMP/out" \- --history insiders/drops/history.json --app build/sculptforge --cli build/sculptforge-cli \- $([ "$MODE" = hold ] && echo --hold)- - name: Drop for review (artifact)- if: env.SKIP_DROP != '1' && env.MODE != 'approve'- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2- with:- name: drop-${{ env.DATE }}- path: ${{ runner.temp }}/out/${{ env.DATE }}- if-no-files-found: ignore- retention-days: 30- - name: Approve the held drop- if: env.MODE == 'approve'- run: |- [ "$HAS_INSIDERS" = true ] || { echo "approving needs INSIDERS_REPO_TOKEN (the held drop lives in the insider repo)"; exit 1; }- [ -f "insiders/$DROP_DIR/drop.json" ] || { echo "no held drop for $DATE in the insider repo"; exit 1; }- python3 tools/drops/drops.py approve "insiders/$DROP_DIR"- - name: Post to #insiders- if: env.SKIP_DROP != '1' && env.MODE != 'hold'- env:- DISCORD_INSIDERS_WEBHOOK: ${{ secrets.DISCORD_INSIDERS_WEBHOOK }}- run: |- D="$RUNNER_TEMP/out/$DATE"- [ "$MODE" = approve ] && D="insiders/$DROP_DIR"- [ -f "$D/drop.json" ] || { echo "no drop today"; exit 0; }- python3 tools/drops/drops.py post "$D" --webhook-env DISCORD_INSIDERS_WEBHOOK- - name: Bundle the month for Supporters- if: env.MONTH != '' && env.HAS_INSIDERS == 'true'- env:- DISCORD_MEMBERS_WEBHOOK: ${{ secrets.DISCORD_MEMBERS_WEBHOOK }}- run: |- B="insiders/bundles/$MONTH"- if [ -f "$B/bundle.json" ]; then echo "$MONTH already bundled"; exit 0; fi- python3 tools/drops/drops.py monthly --month "$MONTH" --drops insiders/drops --out "$B" --cli build/sculptforge-cli- python3 tools/drops/drops.py post "$B" --webhook-env DISCORD_MEMBERS_WEBHOOK- - name: Commit to the insider repository- if: env.HAS_INSIDERS == 'true'- env:- INSIDERS_TOKEN: ${{ secrets.INSIDERS_REPO_TOKEN }}- run: |- if [ "$MODE" != approve ] && [ -f "$RUNNER_TEMP/out/$DATE/gate.json" ]; then- mkdir -p "insiders/$DROP_DIR" && cp -r "$RUNNER_TEMP/out/$DATE/." "insiders/$DROP_DIR/"- fi- cd insiders- git add -A .- if git diff --cached --quiet; then echo "nothing to commit"; exit 0; fi- git -c user.name="github-actions[bot]" -c user.email="41898282+github-actions[bot]@users.noreply.github.com" \- commit -qm "Drop $DATE ($MODE)${MONTH:+, Insider Pack $MONTH}"- auth=$(printf 'x-access-token:%s' "$INSIDERS_TOKEN" | base64 -w0)- echo "::add-mask::$auth"- git -c http.https://github.com/.extraheader="AUTHORIZATION: basic $auth" push -q- - name: Public pack listing (schedule and release)- if: env.HAS_INSIDERS == 'true'- run: |- P="$RUNNER_TEMP/packs"- mkdir -p "$P/insider"- if git fetch --depth=1 origin packs 2>/dev/null; then git --work-tree="$P" checkout FETCH_HEAD -- . && git reset -q; fi- for b in insiders/bundles/*/bundle.json; do- [ -f "$b" ] || continue- id=$(python3 -c "import json,sys; print(json.load(open(sys.argv[1]))['id'])" "$b")- grep -q "\"$id\"" "$P/listing.json" 2>/dev/null || python3 tools/drops/drops.py schedule --listing "$P/listing.json" --bundle "$(dirname "$b")"- done- [ -f "$P/listing.json" ] || exit 0- for id in $(python3 tools/drops/drops.py due --listing "$P/listing.json" --today "$DATE"); do- cp "insiders/bundles/${id#insider-pack-}/$id.sfpack" "$P/insider/"- cp "insiders/bundles/${id#insider-pack-}/$id.png" "$P/insider/" 2>/dev/null || true- python3 tools/drops/drops.py release --listing "$P/listing.json" --id "$id"- echo "released $id"- done- cd "$P"- git init -q -b packs- git add -A- git -c user.name="github-actions[bot]" -c user.email="41898282+github-actions[bot]@users.noreply.github.com" \- commit -qm "Pack listing $DATE"- git push -qf "https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}" packsdiff --git a/docs/releasing.md b/docs/releasing.mdindex 845034fb..55ff5848 100644--- a/docs/releasing.md+++ b/docs/releasing.md@@ -142,12 +142,11 @@ the guide from the newest tag without a `-` (pages.yml). A second beta is `0.12.What keeps the insiders token from leaking; `tools/release/check_workflows.py` (run by release.sh check and ctest`release_workflows`) fails when the workflow side of it breaks.-- `INSIDERS_REPO_TOKEN` exists only as an **environment secret**, never at repository level:- - `member-release` (release.yml `publish-members`): deployment only from tags `v*`, required reviewer islandmed- (self-review allowed: solo maintainer). A workflow_dispatch from a branch can't use it.- - `member-drops` (insider-drop.yml, the daily drop): deployment only from `main`, no reviewer (it runs on a schedule).- - Set or rotate (never echo it): `wl-paste -n | gh secret set INSIDERS_REPO_TOKEN --env member-release -R islandmed/SculptForge`- (same with `--env member-drops`).+- `INSIDERS_REPO_TOKEN` exists only as a secret of the environment **`member-release`**, never at repository level:+ deployment only from tags `v*`, required reviewer islandmed (self-review allowed: solo maintainer). Only release.yml's+ `publish-members` uses it; a workflow_dispatch from a branch can't. Set or rotate (never echo it):+ `wl-paste -n | gh secret set INSIDERS_REPO_TOKEN --env member-release -R islandmed/SculptForge`.+ (The daily-drop workflow and the preview-build workflow were retired with the Insider tier; betas are the members' builds.)- release.yml: top-level `permissions: contents: read`; `publish-members` reads only, runs only for betas, and passesthe token as an env var to its one publishing step; every `uses:` pinned to a full commit SHA with the version in acomment (update by resolving the new tag: `gh api repos/OWNER/REPO/git/ref/tags/vX.Y.Z --jq .object.sha`); checkoutsdiff --git a/tools/release/check_workflows.py b/tools/release/check_workflows.pyindex 5e6a323b..824536b6 100755--- a/tools/release/check_workflows.py+++ b/tools/release/check_workflows.py@@ -121,7 +121,7 @@ def self_test():"no publisher": ({"release.yml": GOOD.replace(TOKEN, "github.token")}, 1),"prt": ({"release.yml": GOOD, "x.yml": "on:\n pull_request_target:\njobs:\n a:\n steps: []\n"}, 1),"repo-level reader": ({"release.yml": GOOD, "x.yml": f"jobs:\n a:\n env:\n T: ${{{{ {TOKEN} }}}}\n"}, 1),- "env reader ok": ({"release.yml": GOOD, "x.yml": f"jobs:\n a:\n environment: member-drops\n env:\n T: ${{{{ {TOKEN} }}}}\n"}, 0),+ "env reader ok": ({"release.yml": GOOD, "x.yml": f"jobs:\n a:\n environment: other-env\n env:\n T: ${{{{ {TOKEN} }}}}\n"}, 0),}bad = [f"{k}: {check(f)}" for k, (f, n) in cases.items() if bool(check(f)) != bool(n)]for b in bad: