Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislbr committed Oct 6, 2023
1 parent 9383381 commit 6677e21
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -18,9 +18,9 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- name: Get git tag
run: echo "GIT_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
- name: Generate build files
uses: wangyoucao577/go-release-action@master
with:
Expand All @@ -32,14 +32,15 @@ jobs:
publish:
name: Publish package to Go proxy
runs-on: ubuntu-latest
needs: build
steps:
- name: Install Go
uses: actions/setup-go@v2
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- name: Get git tag
run: echo "GIT_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
- name: Publish package
run: GO111MODULE=on GOPROXY=proxy.golang.org go list -m github.com/lewislbr/ready@"$GIT_TAG"

0 comments on commit 6677e21

Please sign in to comment.