Skip to content

Commit

Permalink
update cicd changelog for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-pmillz committed Sep 3, 2024
1 parent 64dbf56 commit edfece2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,16 @@ jobs:
OUTPUT: RELEASE_CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}

- name: copy release changelog
run: |
mkdir -p release_notes
cat RELEASE_CHANGELOG.md > release_notes/RELEASE_CHANGELOG.md
- name: upload release changelog
uses: actions/upload-artifact@master
with:
name: release-changelog
path: RELEASE_CHANGELOG.md
path: release_notes

# ================
# RELEASE JOB
Expand Down Expand Up @@ -117,15 +122,15 @@ jobs:
uses: actions/download-artifact@master
with:
name: release-changelog
path: RELEASE_CHANGELOG.md
path: release_notes

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
if: startsWith(github.ref, 'refs/tags/v')
with:
distribution: goreleaser
version: latest
args: release --clean --release-notes RELEASE_CHANGELOG.md
args: release --clean --release-notes release_notes/RELEASE_CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@
*.csv
eoldate
RELEASE_CHANGELOG.md
release_notes
release_notes/
release_notes/*
coverage
coverage/
coverage/*
Empty file added coverage/.gitkeep
Empty file.

0 comments on commit edfece2

Please sign in to comment.