Skip to content

Commit

Permalink
add changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
HomelessDinosaur committed Mar 13, 2024
1 parent 0ae1db1 commit 468477c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish-dry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish to pub.dev

on:
push:
branches:
- changelog

# Publish using custom workflow
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.NITRIC_BOT_TOKEN }}
fromTag: v1.0.0
toTag: v0.0.0
writeToFile: true
- name: Check Publish Warnings
run: dart pub publish --dry-run
3 changes: 0 additions & 3 deletions CHANGELOG.md

This file was deleted.

0 comments on commit 468477c

Please sign in to comment.