From fc42d4043b3c8bab99039b6b08ae3d0c72816b81 Mon Sep 17 00:00:00 2001 From: Jonas Plum Date: Sun, 2 Oct 2022 20:10:57 +0200 Subject: [PATCH] Fix version (#474) Co-authored-by: Jonas Plum --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf7f649..91dece2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,17 +125,17 @@ jobs: with: { go-version: '1.19', cache: true } - uses: actions/download-artifact@v3 with: { name: ui, path: ui/dist } + - name: Version + if: github.ref_type == 'tag' && github.ref_name != '' + run: | + echo ${{ github.ref_name }} + echo ${{ github.ref_name }} > VERSION - run: go build -o catalyst ./cmd/catalyst/. - uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Version - if: github.ref_type == 'tag' && github.ref_name != '' - run: | - echo ${{ github.ref_name }} - echo ${{ github.ref_name }} > VERSION - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v4