Skip to content

Commit

Permalink
Merge pull request #6 from availproject/fix/release-workflow
Browse files Browse the repository at this point in the history
fix: Runs Release workflows only on releases and pre-releases publish…
  • Loading branch information
moraesjeremias authored Feb 28, 2024
2 parents bb27e66 + 977972b commit 485300e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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*
Expand All @@ -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 }}
Expand Down

0 comments on commit 485300e

Please sign in to comment.