Skip to content

Commit

Permalink
use release workflow from autologs
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Feb 25, 2021
1 parent e5022e1 commit be38c62
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
#----------------------------------------------------------------------------
release-notes:
name: Release Notes 📰
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest

steps:
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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

0 comments on commit be38c62

Please sign in to comment.