From 44cdeef2f144e064a84ce9daa3e90479bb60755b Mon Sep 17 00:00:00 2001 From: KoheiKanagu Date: Sat, 8 Jun 2024 22:14:44 +0900 Subject: [PATCH] ci: Add GitHub Actions workflow for publishing to pub.dev (#4) --- .github/workflows/publish.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4208e72 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,14 @@ +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 + with: + environment: pub.dev