Skip to content

Commit f854ec3

Browse files
committed
chore(release): v0.1.5
bump homebrew tab with source code archive url re #3
1 parent 7149815 commit f854ec3

File tree

3 files changed

+5
-39
lines changed

3 files changed

+5
-39
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,9 @@ name: CD
77

88
jobs:
99
build:
10-
name: Create & Upload Release Asset
10+
name: Release
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Set up Go
14-
uses: actions/setup-go@v2
15-
with:
16-
go-version: '^1.15'
17-
18-
- name: Checkout code
19-
uses: actions/checkout@v2
20-
21-
- name: Get dependencies
22-
run: go get -v -t -d ./...
23-
24-
- name: Build
25-
run: go build -v -o gitwok .
26-
27-
- name: Archive tar.gz
28-
run: tar -czf gitwok-mac.tar.gz gitwok
29-
30-
- name: Gen Sha 256
31-
id: gen_sha_256
32-
run: echo "::set-output name=TARGZSHA256::$(shasum -a 256 gitwok-mac.tar.gz)"
33-
3413
- name: Create Release
3514
id: create_release
3615
uses: actions/create-release@v1
@@ -39,31 +18,18 @@ jobs:
3918
with:
4019
tag_name: ${{ github.ref }}
4120
release_name: ${{ github.ref }}
42-
body: |
43-
- Sha 256: ${{ steps.gen_sha_256.outputs.TARGZSHA256 }}
21+
# body_path: TODO: changelog
4422
draft: false
4523
prerelease: false
4624

47-
- name: Upload Release Asset
48-
id: upload_release_asset
49-
uses: actions/upload-release-asset@v1
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
with:
53-
# This pulls from the Create Release step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
54-
upload_url: ${{ steps.create_release.outputs.upload_url }}
55-
asset_path: ./gitwok-mac.tar.gz
56-
asset_name: gitwok-mac.tar.gz
57-
asset_content_type: application/x-gzip
58-
5925
- name: Bump Homebrew tap formula
6026
uses: mislav/bump-homebrew-formula-action@v1
6127
if: "!contains(github.ref, '-')" # skip prereleases
6228
with:
6329
formula-name: gitwok
6430
homebrew-tap: Roytangrb/homebrew-gitwok
6531
base-branch: main
66-
download-url: ${{ steps.upload_release_asset.outputs.browser_download_url }}
32+
download-url: https://github.com/Roytangrb/gitwok/archive/${{ github.ref }}.tar.gz
6733
commit-message: Release {{version}}
6834
env:
6935
COMMITTER_TOKEN: ${{ secrets.BREW_TAP_REPO_TOKEN }}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ First, fork and clone this repo to your local `$GOPATH/src/gitwok`
3838

3939
* `ci.yml`: this is the standard go CI workflow to run all tests, build and uploading test coverage report to `codecov.io`. The detailed report can be view [here](https://codecov.io/gh/Roytangrb/gitwok)
4040

41-
* `release.yml`: the CD workflow is triggered whenever a tag starting with `v` is pushed. It builds the executable binary, tar zips and creates a release with the version tag. The zipped asset is uploaded as github release asset. And the corresponding Homebrew Fomula changes will be PR to another [Homebrew tap repo](https://github.com/Roytangrb/homebrew-gitwok).
41+
* `release.yml`: the CD workflow is triggered whenever a tag starting with `v` is pushed. It creates a release with the version tag. The default archived source code tar zip url is updated to [homebrew tap repo](https://github.com/Roytangrb/homebrew-gitwok). and version will be bumped. And the corresponding Homebrew Fomula changes will be committed.
4242

4343
## Testing
4444

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var logger *util.Logger = util.InitLogger(os.Stdout, os.Stdout, os.Stdout, os.St
2525
// rootCmd represents the base command when called without any subcommands
2626
var rootCmd = &cobra.Command{
2727
Use: "gitwok",
28-
Version: "v0.1.4",
28+
Version: "v0.1.5",
2929
Short: "Configurable CLI with conventional commits, changelog, git hooks all in one",
3030
Run: func(cmd *cobra.Command, args []string) {},
3131
}

0 commit comments

Comments
 (0)