diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7b54632..9caa138 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index effe43c..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -## 1.0.0 - -- Initial version.