Skip to content

Commit

Permalink
ci: add automatic changelog generation (#22)
Browse files Browse the repository at this point in the history
* add automatic changelog generation

* add fetch depth
  • Loading branch information
HomelessDinosaur authored Mar 13, 2024
1 parent 0ae1db1 commit dce22a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Add version
run: |
echo -e "\n\nversion: ${GITHUB_REF_NAME##v}" >> pubspec.yaml
- name: Update CHANGELOG
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.NITRIC_BOT_TOKEN }}
fromTag: ${{ github.ref_name }}
toTag: v1.0.0
writeToFile: true
- name: Check Publish Warnings
run: dart pub publish --dry-run
- name: Publish
Expand Down
3 changes: 0 additions & 3 deletions CHANGELOG.md

This file was deleted.

0 comments on commit dce22a6

Please sign in to comment.