Skip to content

Commit

Permalink
ci: fix release dependency (#63)
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Brockopp <[email protected]>
  • Loading branch information
wass3r and jbrockopp committed May 4, 2020
1 parent 298a311 commit c497661
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,38 @@ jobs:
container:
image: golang:latest
steps:
- name: clone
uses: actions/checkout@v1
- name: clone
uses: actions/checkout@v1

- name: tags
run: |
git fetch --tags
- name: tags
run: |
git fetch --tags
- name: version
id: version
run: |
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: version
id: version
run: |
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: install
run: |
go get github.com/git-chglog/git-chglog/cmd/git-chglog
go get github.com/itchio/gothub
- name: install
run: |
go get github.com/git-chglog/git-chglog/cmd/git-chglog
go get github.com/github-release/github-release
- name: changelog
run: |
# https://github.com/git-chglog/git-chglog#git-chglog
$(go env GOPATH)/bin/git-chglog \
-o $GITHUB_WORKSPACE/CHANGELOG.md \
${{ steps.version.outputs.VERSION }}
- name: changelog
run: |
# https://github.com/git-chglog/git-chglog#git-chglog
$(go env GOPATH)/bin/git-chglog \
-o $GITHUB_WORKSPACE/CHANGELOG.md \
${{ steps.version.outputs.VERSION }}
- name: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# https://github.com/itchio/gothub#gothub
$(go env GOPATH)/bin/gothub edit \
--user go-vela \
--repo types \
--tag ${{ steps.version.outputs.VERSION }} \
--name ${{ steps.version.outputs.VERSION }} \
--description "$(cat $GITHUB_WORKSPACE/CHANGELOG.md)"
- name: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# https://github.com/github-release/github-release#how-to-use
$(go env GOPATH)/bin/github-release edit \
--user go-vela \
--repo types \
--tag ${{ steps.version.outputs.VERSION }} \
--name ${{ steps.version.outputs.VERSION }} \
--description "$(cat $GITHUB_WORKSPACE/CHANGELOG.md)"

0 comments on commit c497661

Please sign in to comment.