From 977972b4ace8c472e8ee2cb142034a31d8ee4a38 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 28 Feb 2024 19:07:13 -0300 Subject: [PATCH] fix: Runs Release workflows only on releases and pre-releases publish + fix upload bin action dep version --- .github/workflows/release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 090e2aa..fd8ef26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,9 +3,13 @@ on: push: branches-ignore: - '**' - tags: + tags-ignore: - 'v*.*.*' - 'v*.*.*-*' + release: + types: + - released + - prereleased jobs: binary_linux_amd64: runs-on: ubuntu-20.04 @@ -40,7 +44,7 @@ jobs: TAG=${GITHUB_REF#refs/tags/} echo ::set-output name=tag_name::${TAG} - name: Publish Binaries - uses: svenstaro/upload-release-action@v3 + uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.PAT_TOKEN }} file: /home/runner/work/bridge-api/bridge-api/bridge-api* @@ -64,7 +68,7 @@ jobs: run: | TAG=${GITHUB_REF#refs/tags/} echo ::set-output name=tag_name::${TAG} - - name: Login to Digital Ocean Registry + - name: Login to Dockerhub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }}