Skip to content

Commit

Permalink
ci(#129): fix tag messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Jul 26, 2024
1 parent 0e0c4da commit 04ab6bb
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ jobs:
needs: [build-linux, build-macos]
runs-on: ubuntu-latest
steps:
# we check out the repo to get information from tags
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
# release binaries -------------------------------------------------------
- name: download linux artifact
uses: actions/download-artifact@v4
with:
Expand All @@ -84,6 +79,18 @@ jobs:
chmod +x ./vivify-linux/* ./vivify-macos/*
tar -czf vivify-linux.tar.gz vivify-linux
tar -czf vivify-macos.tar.gz vivify-macos
# release notes ----------------------------------------------------------
# we check out the repo to get information from tags
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
# actions/checkout seems to have a bug where annotated tags are converted
# to simple tags so we have to fetch them explicitly again
# https://github.com/actions/checkout/issues/882
- run: git fetch --tags --force origin
- name: build release notes
run: |
echo -e "## What's changed\n" \
Expand All @@ -100,6 +107,8 @@ jobs:
>> release.md
- name: print release notes for logs
run: cat release.md

# release ----------------------------------------------------------------
- name: release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 04ab6bb

Please sign in to comment.