Skip to content

Commit

Permalink
Merge pull request #13 from betadots/update
Browse files Browse the repository at this point in the history
update release creation
  • Loading branch information
rwaffen authored Apr 12, 2024
2 parents 05931fa + 83ad187 commit aadbf50
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Prep Environment
run: |
bundle config set --local with 'release'
bundle install
mkdir -p build
- name: Get previous Tag
id: get-previous-tag
run: |
EXCLUDES=$(git describe --abbrev=0 --tags)
PTAG=$(git describe --abbrev=0 --tags --exclude="${EXCLUDES}")
echo "previous_tag=${PTAG}" >> "$GITHUB_OUTPUT"
- name: Generate Changelog
env:
CHANGELOG_GITHUB_TOKEN: ${{ github.token }}
run: bundle exec github_changelog_generator --user ${{ github.repository_owner }} --project "gha-test-repo" --since-tag ${{ steps.get-previous-tag.outputs.previous_tag }} --future-release ${{ github.ref_name }} --output build/changelog.md

- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create ${{ github.ref_name }} --notes-file build/changelog.md --title "Release ${{ github.ref_name }}"
run: gh release create ${{ github.ref_name }} --generate-notes

0 comments on commit aadbf50

Please sign in to comment.