From 70255dc53c315ca343a0c722f2f9e481998f7544 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 16 Mar 2026 19:56:46 -0500 Subject: [PATCH 1/4] ci: set version to zero as versioning is managed in release workflow --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 94b68c3..ce5b6f0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "site-profile", "type": "module", - "version": "3.6.0", + "version": "0.0.0", "homepage": "https://www.alexlebens.dev", "bugs": { "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues", From abdb30b0e362bb97d59969cc5ea714c60b0efe60 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 16 Mar 2026 22:07:23 -0500 Subject: [PATCH 2/4] feat: release for content From 1c67cd0ddc3e09867475124333251b9d68cf2f3c Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 16 Mar 2026 22:16:26 -0500 Subject: [PATCH 3/4] ci: update package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ce5b6f0..033bfe2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "site-profile", "type": "module", - "version": "0.0.0", + "version": "3.13.0", "homepage": "https://www.alexlebens.dev", "bugs": { "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues", From ecd2cc7012c79a7d29e0e1591fc71bb44d71ebcd Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 16 Mar 2026 22:43:33 -0500 Subject: [PATCH 4/4] ci: enable directus webhook release --- .gitea/workflows/release-image.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release-image.yaml b/.gitea/workflows/release-image.yaml index 5c4e455..f37d657 100644 --- a/.gitea/workflows/release-image.yaml +++ b/.gitea/workflows/release-image.yaml @@ -5,7 +5,8 @@ on: branches: - release - workflow_dispatch: + repository_dispatch: + types: [directus_update] jobs: build: @@ -29,14 +30,15 @@ jobs: - name: Install Dependencies run: bun install --frozen-lockfile - - name: Cache Astro Build Cache + - name: Cache Astro Build uses: actions/cache@v5 with: path: | .astro node_modules/.vite - key: ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }} + key: ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}-${{ github.event_name == 'repository_dispatch' && github.run_id || 'static' }} restore-keys: | + ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}- ${{ runner.os }}-astro- - name: Lint Code @@ -100,6 +102,9 @@ jobs: semantic-release: needs: [ build, guarddog ] runs-on: ubuntu-js + if: | + github.event_name != 'repository_dispatch' || + github.event.client_payload.data.published == true outputs: new-release-published: ${{ steps.semantic.outputs.new-release-published }} new-release-version: ${{ steps.semantic.outputs.new-release-version }} @@ -111,6 +116,13 @@ jobs: fetch-depth: 0 token: ${{ secrets.BOT_TOKEN }} + - name: Prepare Content Patch + if: github.event_name == 'repository_dispatch' + run: | + git config user.name "gitea-bot" + git config user.email "gitea-bot@alexlebens.net" + git commit --allow-empty -m "fix(content): directus published update [skip ci]" + - name: Set up Node uses: actions/setup-node@v6 with: @@ -239,7 +251,7 @@ jobs: runs-on: ubuntu-js needs: [ semantic-release, release-harbor ] if: | - always() && + always() && needs.semantic-release.outputs.new-release-published == 'true' steps: - name: Checkout