From c7673083026f0364eef20f24ecf68649ac36776b Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Sat, 6 Jul 2024 18:39:47 +0200 Subject: [PATCH 1/2] ci: set up workflow for automated publishing to pub.dev --- .github/workflows/publish.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..9559cc7 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,12 @@ +name: Publish to pub.dev + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + permissions: + id-token: write + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 From 9d43d4af44717ebdfa893b08add4bd49d1929908 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Sat, 6 Jul 2024 18:41:49 +0200 Subject: [PATCH 2/2] ci: set up release-please-workflow --- .github/workflows/release-please.yml | 19 +++++++++++++++++++ .release-please-manifest.json | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..37e1467 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,19 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + token: ${{ secrets.RELEASE_PLEASE_PAT }} + release-type: dart diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..766b401 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,4 @@ +{ + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false +}