Skip to content

Commit c8d0e62

Browse files
authored
feat: add os naming to filename (#123)
1 parent 78a0bcb commit c8d0e62

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.github/workflows/Release.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ jobs:
7070
- name: Publish Release
7171
run: >-
7272
awesome-ci release publish --release-id ${{ needs.create_release.outputs.releaseid }}
73-
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_amd64"
74-
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_arm64"
75-
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_amd64.exe"
76-
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_arm64.exe"
73+
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_linux_amd64"
74+
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_linux_arm64"
75+
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_windows_amd64.exe"
76+
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_windows_arm64.exe"
7777
-body "scripts/release-template.md"
7878
env:
7979
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -84,6 +84,8 @@ jobs:
8484
steps:
8585
- name: Checkout code
8686
uses: actions/checkout@v3
87+
with:
88+
fetch-depth: 0
8789

8890
- name: update changelog
8991
run: docker run -v "$PWD":/workdir quay.io/git-chglog/git-chglog -o CHANGELOG.md 1.0.0..

.github/workflows/branchPR.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
echo "git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@': $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')"
3737
3838
- name: test build Infos
39-
run: build/package/awesome-ci_${{ needs.generate_infos.outputs.version }}_amd64 pr info -n ${{ github.event.pull_request.number }} -v > $GITHUB_STEP_SUMMARY
39+
run: build/package/awesome-ci_${{ needs.generate_infos.outputs.version }}_linux_amd64 pr info -n ${{ github.event.pull_request.number }} -v > $GITHUB_STEP_SUMMARY
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
- name: test env file

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ dep_update:
2727
go get -t ./...
2828

2929
awesome-ci: dep
30-
GOOS=linux GOARCH=amd64 go build ${GOARGS} -tags "${GOTAGS}" -ldflags "${LDFLAGS}" -o ${BUILD_DIR}/package/awesome-ci_${VERSION}_amd64 ./cmd/awesome-ci
31-
GOOS=linux GOARCH=arm64 go build ${GOARGS} -tags "${GOTAGS}" -ldflags "${LDFLAGS}" -o ${BUILD_DIR}/package/awesome-ci_${VERSION}_arm64 ./cmd/awesome-ci
32-
GOOS=windows GOARCH=amd64 go build ${GOARGS} -tags "${GOTAGS}" -ldflags "${LDFLAGS}" -o ${BUILD_DIR}/package/awesome-ci_${VERSION}_amd64.exe ./cmd/awesome-ci
33-
GOOS=windows GOARCH=arm64 go build ${GOARGS} -tags "${GOTAGS}" -ldflags "${LDFLAGS}" -o ${BUILD_DIR}/package/awesome-ci_${VERSION}_arm64.exe ./cmd/awesome-ci
30+
GOOS=linux GOARCH=amd64 go build ${GOARGS} -tags "${GOTAGS}" -ldflags "${LDFLAGS}" -o ${BUILD_DIR}/package/awesome-ci_${VERSION}_linux_amd64 ./cmd/awesome-ci
31+
GOOS=linux GOARCH=arm64 go build ${GOARGS} -tags "${GOTAGS}" -ldflags "${LDFLAGS}" -o ${BUILD_DIR}/package/awesome-ci_${VERSION}_linux_arm64 ./cmd/awesome-ci
32+
GOOS=windows GOARCH=amd64 go build ${GOARGS} -tags "${GOTAGS}" -ldflags "${LDFLAGS}" -o ${BUILD_DIR}/package/awesome-ci_${VERSION}_windows_amd64.exe ./cmd/awesome-ci
33+
GOOS=windows GOARCH=arm64 go build ${GOARGS} -tags "${GOTAGS}" -ldflags "${LDFLAGS}" -o ${BUILD_DIR}/package/awesome-ci_${VERSION}_windows_arm64.exe ./cmd/awesome-ci
3434

3535
test: ## Run unittests
3636
-go test -short -v ./internal/pkg/...

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[![Publish Release](https://github.com/fullstack-devops/awesome-ci/actions/workflows/Release.yaml/badge.svg)](https://github.com/fullstack-devops/awesome-ci/actions/workflows/Release.yaml)
2+
[![CodeQL](https://github.com/fullstack-devops/awesome-ci/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/fullstack-devops/awesome-ci/actions/workflows/codeql-analysis.yml)
3+
[![gh-pages](https://github.com/fullstack-devops/awesome-ci/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/fullstack-devops/awesome-ci/actions/workflows/pages/pages-build-deployment)
24

35
# Awesome CI
46

0 commit comments

Comments
 (0)