Skip to content

Commit d669d8a

Browse files
authored
gh actions update (#61)
1 parent c4a4922 commit d669d8a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on: [push, pull_request, workflow_dispatch]
44

55
env:
66
DEFAULT_GO_VERSION: ^1.15
7-
IS_RELEASE: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
87
IS_PUSH: ${{ github.event_name == 'push' }}
98
GITHUB_USERNAME: ${{ secrets.EC2_BOT_GITHUB_USERNAME }}
109
GITHUB_TOKEN: ${{ secrets.EC2_BOT_GITHUB_TOKEN }}
@@ -52,25 +51,21 @@ jobs:
5251
name: Release
5352
runs-on: ubuntu-20.04
5453
needs: [buildAndTest]
54+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
5555
steps:
5656
- name: Set up Go 1.x
57-
if: ${{ env.IS_RELEASE == true }}
5857
uses: actions/setup-go@v2
5958
with:
6059
go-version: ${{ env.DEFAULT_GO_VERSION }}
6160

6261
- name: Check out code into the Go module directory
63-
if: ${{ env.IS_RELEASE == true }}
6462
uses: actions/checkout@v2
6563

6664
- name: Release Assets
67-
if: ${{ env.IS_RELEASE == true }}
6865
run: make release
6966

7067
- name: Sync Readme to Dockerhub
71-
if: ${{ env.IS_RELEASE == true }}
7268
run: make sync-readme-to-dockerhub
7369

7470
- name: Sync to Homebrew
75-
if: ${{ env.IS_RELEASE == true }}
7671
run: make homebrew-sync

0 commit comments

Comments
 (0)