Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add automatic changelog generation #22

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading