Skip to content

docs: make the tool auto printing changelog with release for itself #29

docs: make the tool auto printing changelog with release for itself

docs: make the tool auto printing changelog with release for itself #29

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
tags:
- "*"
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22.5'
- name: Install Autogit
run: |
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:
fetch-depth: 0
- 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