Skip to content

Commit b9d64dd

Browse files
committed
fix: update workflows and docs for new project structure
1 parent e2746de commit b9d64dd

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ jobs:
7878
- name: Build
7979
run: |
8080
if [ "${{ matrix.os }}" = "windows-latest" ]; then
81-
go build -v -o ${{ matrix.artifact_name }} -ldflags="-s -w" ./src
81+
go build -v -o ${{ matrix.artifact_name }} -ldflags="-s -w" ./cmd/commit-msg
8282
else
83-
go build -v -o ${{ matrix.artifact_name }} -ldflags="-s -w" ./src
83+
go build -v -o ${{ matrix.artifact_name }} -ldflags="-s -w" ./cmd/commit-msg
8484
fi
8585
shell: bash
8686

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ Improving documentation is always appreciated:
104104
3. Run the application:
105105

106106
```bash
107-
go run src/main.go .
107+
go run cmd/commit-msg/main.go .
108108
```
109109

110110
4. Build the executable:
111111
```bash
112-
go build -o commit.exe src/main.go
112+
go build -o commit.exe cmd/commit-msg/main.go
113113
```
114114

115115
### Testing Your Changes

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
Below is a sample execution of `commit-msg`:
1313

14-
![Commit-msg GIF](commit.gif)
14+
![Commit-msg GIF](assets/commit.gif)
1515

1616
Before running the application, ensure you have set the system environment variables. and add commit.exe to path variables (same for linux macOS)
1717

@@ -102,7 +102,7 @@ cd commit-msg
102102
go mod download
103103

104104
# Build the executable
105-
go build -o commit src/main.go
105+
go build -o commit cmd/commit-msg/main.go
106106

107107
# (Optional) Install to GOPATH
108108
go install
@@ -123,7 +123,7 @@ commit .
123123
Or if running from source:
124124

125125
```bash
126-
go run src/main.go .
126+
go run cmd/commit-msg/main.go .
127127
```
128128

129129
### Example Workflow

0 commit comments

Comments
 (0)