From 73531d076de39246331d5d377b1f75483557ec5d Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Mon, 22 Jun 2026 19:46:51 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20rename=20master=20=E2=86=92=20main,=20add?= =?UTF-8?q?=20v4-dev=20release=20cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Branch rename follow-up: - clojure-integration-tests: drop 'master' from push branch filter - docker-publish: update both branch filters to 'main' - Makefile: git archive now targets 'main' branch - docs: update two /blob/master/ GitHub URLs to /blob/main/ Also add 'Delete previous versioned JAR assets' step to publish-dev so each push to main retains only one versioned pgloader-4.x.x-.jar on the v4-dev release, plus the stable pgloader.jar. --- .github/workflows/clojure-integration-tests.yml | 12 +++++++++++- .github/workflows/docker-publish.yml | 4 ++-- Makefile | 2 +- docs/index.rst | 2 +- docs/ref/pgsql-citus-target.rst | 2 +- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/clojure-integration-tests.yml b/.github/workflows/clojure-integration-tests.yml index b75ff113..71e96383 100644 --- a/.github/workflows/clojure-integration-tests.yml +++ b/.github/workflows/clojure-integration-tests.yml @@ -6,7 +6,7 @@ on: - 'clojure/**' - '.github/workflows/clojure-integration-tests.yml' push: - branches: [master, main, citus-v3, v4-clojure-rewrite] + branches: [main, citus-v3, v4-clojure-rewrite] paths: - 'clojure/**' - '.github/workflows/clojure-integration-tests.yml' @@ -341,6 +341,16 @@ jobs: echo "version=${VERSION}" >> "$GITHUB_OUTPUT" echo "sha=${SHA}" >> "$GITHUB_OUTPUT" + - name: Delete previous versioned JAR assets + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release view v4-dev --repo ${{ github.repository }} --json assets \ + --jq '.assets[].name' 2>/dev/null \ + | grep -E '^pgloader-[0-9]' \ + | xargs -r -I{} gh release delete-asset v4-dev {} \ + --repo ${{ github.repository }} --yes || true + - name: Update v4-dev release uses: softprops/action-gh-release@v2 with: diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index ade693cb..29e137d0 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -7,11 +7,11 @@ name: Docker on: push: - branches: [ master ] + branches: [ main ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] pull_request: - branches: [ master ] + branches: [ main ] env: # Use docker.io for Docker Hub if empty diff --git a/Makefile b/Makefile index 27ed8009..7fcc4140 100644 --- a/Makefile +++ b/Makefile @@ -199,7 +199,7 @@ $(BUNDLE): $(BUNDLEDIR) $(BUNDLEDIR)/version.sexp cp bundle/README.md $(BUNDLEDIR) cp bundle/save.lisp $(BUNDLEDIR) sed -e s/%VERSION%/$(VERSION)/ < bundle/Makefile > $(BUNDLEDIR)/Makefile - git archive --format=tar --prefix=pgloader-$(VERSION)/ master \ + git archive --format=tar --prefix=pgloader-$(VERSION)/ main \ | tar -C $(BUNDLEDIR)/local-projects/ -xf - make QLDIR=$(BUNDLEDIR) clones tar -C build/bundle \ diff --git a/docs/index.rst b/docs/index.rst index efd7c843..985b7e1a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -52,7 +52,7 @@ On the fly data transformation some tweaking and clean-up before being sent to PostgreSQL. For instance in the `geolite - `_ + `_ example we can see that integer values are being rewritten as IP address ranges, allowing to target an ``ip4r`` column directly. diff --git a/docs/ref/pgsql-citus-target.rst b/docs/ref/pgsql-citus-target.rst index e248509c..bc2c3a84 100644 --- a/docs/ref/pgsql-citus-target.rst +++ b/docs/ref/pgsql-citus-target.rst @@ -79,7 +79,7 @@ to the tables that have a direct or indirect foreign key reference to the We run pgloader using the following command, where the file `./test/citus/company.load -`_ +`_ contains the pgloader command as shown above. ::