Skip to content

Commit

Permalink
ci: add changelog updater
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Feb 3, 2024
1 parent 0ddb319 commit fa797a2
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
GOOS: [darwin, linux, windows]
GOARCH: [amd64, arm64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
cache: true

Expand All @@ -26,23 +26,36 @@ jobs:
export GOARCH=${{ matrix.GOARCH }}
go build -ldflags "-s -w" -o bin/ github.com/lippkg/lip/cmd/lip
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.GOOS }}-${{ matrix.GOARCH }}
path: bin

update-release-notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- id: extract-release-notes
uses: ffurrer2/extract-release-notes@v2

- uses: softprops/action-gh-release@v1
with:
body: ${{ steps.extract-release-notes.outputs.release_notes }}

upload-to-release:
needs:
- build
- update-release-notes
runs-on: ubuntu-latest
strategy:
matrix:
GOOS: [darwin, linux, windows]
GOARCH: [amd64, arm64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ matrix.GOOS }}-${{ matrix.GOARCH }}
path: artifact
Expand Down

0 comments on commit fa797a2

Please sign in to comment.