Skip to content
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
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish to pub.dev

on:
push:
tags:
# Configure the same tag pattern on pub.dev: v{{version}}.
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
publish:
name: Publish package
environment: 'pub.dev'
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
with:
channel: stable

- uses: dart-lang/setup-dart@v1

- name: Install dependencies
run: flutter pub get

- name: Publish
run: flutter pub publish --force
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ on:

jobs:
package_and_publish:
name: Package and Publish
name: Prepare Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_DEPLOYMENT_TOKEN }}
- uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: gcloud auth print-identity-token --audiences=https://pub.dev | dart pub token add https://pub.dev
# semantic-release updates the version, commits changelog changes,
# and pushes the release tag that triggers the pub.dev publish workflow.
- name: release
uses: cycjimmy/semantic-release-action@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .pubignore

This file was deleted.

11 changes: 2 additions & 9 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
{
"$schema": "https://json.schemastore.org/semantic-release",
"branches": [
"main",
{
"name": "next",
"prerelease": "prerelease"
}
],
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i 's/^version: .*$/version: ${nextRelease.version}/' pubspec.yaml",
"publishCmd": "flutter pub publish -f"
"prepareCmd": "sed -i 's/^version: .*$/version: ${nextRelease.version}/' pubspec.yaml"
}
],
[
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

### BREAKING CHANGES

* * Updates minimum supported SDK version to Dart 3.8.
* Updates minimum supported SDK version to Dart 3.8.
* Use build 4.0.0

# [5.1.0](https://github.com/smartive/flutter-design-system-generator/compare/v5.0.0...v5.1.0) (2025-02-25)
Expand Down
Loading