From fce0e66a9532a75433fe7efc869b79e43994b473 Mon Sep 17 00:00:00 2001 From: Oriventi Date: Mon, 6 Jan 2025 19:23:52 +0100 Subject: [PATCH] feat: add GitHub Actions workflow for publishing to pub.dev --- .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..5aed2e1 --- /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]+*" # for tags like: 'v1.2.3' + +jobs: + publish: + permissions: + id-token: write # Required for authentication using OIDC + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + with: + environment: pub.dev