From b4bfc04c71fe344b1aff781f18f33f68eec79b5b Mon Sep 17 00:00:00 2001 From: Damian Orzepowski Date: Mon, 4 Mar 2024 14:57:44 +0100 Subject: [PATCH] ci(BUX-616): release workflow for engine and models libraries --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fe844ea9..5f7b3f1d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,3 +23,30 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + + release_libs: + runs-on: ubuntu-latest + needs: [release_default] + strategy: + matrix: + lib: + - models + - engine + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: 'Configure Git' + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Tag ${{ matrix.lib }} + run: | + git tag ${{ matrix.lib }}/${{ github.ref_name }} -am "${{ matrix.lib }}/${{ github.ref_name }}" + git push origin ${{ matrix.lib }}/${{ github.ref_name }} + + - name: Syndicate to GoDocs + run: | + echo "syndicating to GoDocs..." + curl "https://proxy.golang.org/github.com/${{ github.repository }}/${{ matrix.lib }}/@v/${{ github.ref_name }}.info"