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

test #60

Closed
wants to merge 15 commits into from
Closed

test #60

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
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,41 @@ jobs:
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
prepare-release:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'release-v')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version from branch
id: extract_version
run: |
branch_name="${{ github.head_ref }}"
version="${branch_name#release-v}"
echo "version=v$version" >> $GITHUB_ENV
- name: Generate changelog
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --tag ${{ env.version }}
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- name: Commit Changelog
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git checkout ${{ github.head_ref }}
git add CHANGELOG.md
git commit -m "Update CHANGELOG for version ${{ env.version }}"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git ${{ github.head_ref }}
- name: Update version in pubspec.yaml
run: |
version_without_v=${{ env.version }}
version_without_v=${version_without_v#v}
sed -i "s/^version: .*/version: $version_without_v/" pubspec.yaml
git add pubspec.yaml
git commit -m "Update pubspec.yaml version to ${{ env.version }}"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git ${{ github.head_ref || github.ref_name }}

37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Changelog

## [0.1.1] - 2024-12-20

### 🚀 Features

- *(windows)* Configure Windows release settings (#59)
- *(ui)* Add opt-out screen on app startup (#57)
- *(ui)* Add privacy policy to application detail page (#56)
- *(ui)* Add licenses page and update legal page (#54)
- *(api)* Support v6 (#42)
- *(sentry)* Add screenshot support (#44)
- *(logger)* Add support for 'off' log level in logger configuration (#43)
- *(security)* Store secure data in secure storage (#31)
- *(ui)* Add button for switching between v5 and v6 (v6 disabled for now) (#27)
- *(logo)* Update app icon (#26)
- Add language setting page (#4)

### 🐛 Bug Fixes

- Correct error when updating server information (#8)
- Resolve Dart warnings
- Adjust colors of home widgets to match pihole web ui

### 🚜 Refactor

- *(ui)* Add description for version selection (#53)
- *(api)* Update apigateway (#38)
- *(database)* Remove old database service and new implement (#34)
- *(api)* Move v5 functions to ApiGatewayV5 (#9)
- Remove unused code (#5)

### ⚙️ Miscellaneous Tasks

- Add git-cliff

<!-- generated by git-cliff -->
1 change: 0 additions & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# template for the changelog header
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.1.0
version: 0.1.1

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down