Skip to content

Commit

Permalink
ops: add right branches to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amendoa committed Nov 30, 2020
1 parent 5c69caa commit 3f81d72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
tags-ignore:
- '*.*'
branches:
# - main
- feat/s3 # replace to main
- main
- develop

jobs:
build_go_binary_and_release:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
LAST_TAG_CONTAINS_RC=true
fi
if [[ "${{ github.ref }}" == "refs/heads/feat/s3s" ]]; then
if [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
IS_PRE_RELEASE=true
if [[ $LAST_TAG_CONTAINS_RC == true ]]; then
Expand Down Expand Up @@ -72,10 +72,10 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.vars.outputs.next-version }}
release_name: ${{ steps.vars.outputs.next-version }}
body: ''
draft: false
prerelease: ${{ steps.vars.outputs.is-pre-release }}
prerelease: ${{ steps.vars.outputs.is-pre-release }}
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
tags-ignore:
- '*.*'
branches:
# - main
- feat/setup # replace to main

- '**'

jobs:
test_on_machine:
Expand Down

0 comments on commit 3f81d72

Please sign in to comment.