From be38c6261316abe1fef6e4f00e79c71ff4018605 Mon Sep 17 00:00:00 2001 From: Katherine Eaton Date: Thu, 25 Feb 2021 15:24:28 -0500 Subject: [PATCH] use release workflow from autologs --- .github/workflows/release.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 74d6dc517..9c4623859 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,7 +11,6 @@ jobs: #---------------------------------------------------------------------------- release-notes: name: Release Notes 📰 - if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: @@ -21,11 +20,18 @@ jobs: lfs: true fetch-depth: 0 + - name: Update Submodules + run: git submodule update --init --recursive + # Check 2 most recent tags, overwrites - name: Tagged Release Notes run: | - workflow/scripts/notes_release.sh `git tag | tail -n2 | head -n1` `git tag | tail -n1` > release-notes.md - - name: Upload Artifact + ./autologs/autologs \ + --release \ + -o release-notes.md \ + --old-tag `git tag | tail -n2 | head -n1` \ + --new-tag `git tag | tail -n1` + - name: Upload Release Notes uses: actions/upload-artifact@v2 with: name: release-notes @@ -35,7 +41,6 @@ jobs: tagged-release: name: Tagged Release needs: [release-notes] - if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: @@ -54,5 +59,5 @@ jobs: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} draft: true - prerelease: false + prerelease: true body_path: release-notes.md