Skip to content

Commit

Permalink
fix release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelneri committed Jun 5, 2021
1 parent f8d5fdb commit c413a50
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Go
name: Deployer CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: push

env:
GO_VERSION: 1.16
Expand All @@ -28,30 +24,26 @@ jobs:
run: go test -v ./...

- name: Release
uses: docker://antonyurchenko/git-release:v3.5.0
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRAFT_RELEASE: "false"
PRE_RELEASE: "false"
CHANGELOG_FILE: "CHANGELOG.md"
ALLOW_EMPTY_CHANGELOG: "false"
ALLOW_TAG_PREFIX: "true"
with:
args: |
build/*.zip

- name: Extract Git Tag
if: startsWith(github.ref, 'refs/tags/')
run: echo "GIT_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build container image
uses: docker/build-push-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
push: true
tags: |
Expand Down

0 comments on commit c413a50

Please sign in to comment.