From 0f1f5e4a96bf45f048eab71a4e93e112a358496c Mon Sep 17 00:00:00 2001 From: louisdachet Date: Mon, 13 May 2024 15:47:35 +0200 Subject: [PATCH] ci: add automatic publish to pub on tag --- .github/workflows/publish-to-pub-on-tag.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/publish-to-pub-on-tag.yaml diff --git a/.github/workflows/publish-to-pub-on-tag.yaml b/.github/workflows/publish-to-pub-on-tag.yaml new file mode 100644 index 0000000..e2adad6 --- /dev/null +++ b/.github/workflows/publish-to-pub-on-tag.yaml @@ -0,0 +1,11 @@ +name: Publish to pub.dev on tag +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" + +jobs: + publish: + permissions: + id-token: write # Required for authentication using OIDC + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1