Skip to content

Commit 8b10fcd

Browse files
committed
fix: Introduce build.
1 parent bdf5f6e commit 8b10fcd

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/.git/
2+
/build/
23
/deployment/
34
/documentation/

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ jobs:
3333
run: |
3434
git tag v${{ steps.get_next_version.outputs.version }}
3535
git push origin v${{ steps.get_next_version.outputs.version }}
36+
- name: Release new version
37+
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
38+
uses: ncipollo/release-action@v1
39+
with:
40+
artifacts: "build/*"
41+
tag: v${{ steps.get_next_version.outputs.version }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Intentionally left empty.
1+
/build/

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,23 @@ analyze:
66
test:
77
@go test -cover ./...
88

9+
clean:
10+
@rm -rf build/
11+
12+
build: clean
13+
@GOOS=darwin GOARCH=amd64 go build -o ./build/techlounge-darwin-amd64 main.go
14+
@GOOS=darwin GOARCH=arm64 go build -o ./build/techlounge-darwin-arm64 main.go
15+
@GOOS=linux GOARCH=amd64 go build -o ./build/techlounge-linux-amd64 main.go
16+
@GOOS=linux GOARCH=arm64 go build -o ./build/techlounge-linux-arm64 main.go
17+
@GOOS=windows GOARCH=amd64 go build -o ./build/techlounge-windows-amd64.exe main.go
18+
@GOOS=windows GOARCH=arm64 go build -o ./build/techlounge-windows-arm64.exe main.go
19+
920
build-docker:
1021
@docker build -t thenativeweb/techlounge .
1122

1223
.PHONY: analyze \
24+
build \
1325
build-docker \
26+
clean \
1427
qa \
1528
test

0 commit comments

Comments
 (0)