Skip to content

Commit

Permalink
docs: make the tool auto printing changelog with release for itself
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Dec 17, 2024
1 parent 8ac3a09 commit 78f826b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Install Autogit
run: |
curl -L $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/darklab8/autogit/releases/latest | sed "s/releases\/tag/releases\/download/")/autogit-linux-amd64 -o /usr/local/bin/autogit && chmod 777 /usr/local/bin/autogit
curl -L https://github.com/darklab8/autogit/releases/download/v2.2.1/autogit-linux-amd64 -o /usr/local/bin/autogit && chmod 777 /usr/local/bin/autogit
- name: Checkout git repo with tags and commits for autogit
uses: actions/checkout@v3
with:
Expand All @@ -31,14 +31,18 @@ jobs:
- name: build
run: task build

- name: Print release changelog
id: changelog
run: echo "artifact='$(autogit changelog)'" >> "$GITHUB_OUTPUT"

- name: upload binaries to release
uses: softprops/action-gh-release@v2
if: ${{startsWith(github.ref, 'refs/tags/') }}
with:
body: ${{ steps.changelog.outputs.artifact }}
files: |
dist/autogit-linux-amd64
dist/autogit-linux-arm64
dist/autogit-macos-amd64
dist/autogit-macos-arm64
dist/autogit-windows-amd64.exe
dist/autogit-windows-arm64.exe
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ tasks:
# - GOOS=linux GOARCH=arm go build -v -o dist/autogit-linux-arm main.go

- GOOS=windows GOARCH=amd64 go build -v -o dist/autogit-windows-amd64.exe main.go
- GOOS=windows GOARCH=arm64 go build -v -o dist/autogit-windows-arm64.exe main.go
# - GOOS=windows GOARCH=arm64 go build -v -o dist/autogit-windows-arm64.exe main.go
# - GOOS=windows GOARCH=386 go build -v -o dist/autogit-windows-386.exe main.go
# - GOOS=windows GOARCH=arm go build -v -o dist/autogit-windows-arm.exe main.go

Expand Down

0 comments on commit 78f826b

Please sign in to comment.