From 607c025157dc7b69f8c71fb69a38ce0395e9b9a8 Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Sun, 11 Aug 2024 08:50:35 +0200 Subject: [PATCH] semantic-release-action --- .github/workflows/docker.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f5e0b02a..32556b79 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -28,6 +28,35 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # will generate a git tag => then, used by docker/metadata-action + - name: Semantic Release + id: semantic_release + uses: cycjimmy/semantic-release-action@v4 + with: + branches: | + [ + '+([0-9])?(.{+([0-9]),x}).x', + 'master', + 'main', + 'next', + 'next-major', + { + name: 'beta', + prerelease: true + }, + { + name: 'alpha', + prerelease: true + }, + { + name: 'app-router', + prerelease: true + } + ] + branch: 'main' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5