From b22b2557a4bb6b88bfb02a7d9da3eec0dd87dec5 Mon Sep 17 00:00:00 2001 From: esentis <52862600+esentis@users.noreply.github.com> Date: Sun, 3 Mar 2024 21:55:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Add=20publish=20workflow=20for?= =?UTF-8?q?=20pub.dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..6806f97 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +# .github/workflows/publish.yml +name: Publish to pub.dev + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" # tag pattern on pub.dev: 'v{{version}' + +# Publish using custom workflow +jobs: + publish: + permissions: + id-token: write # Required for authentication using OIDC + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Flutter + uses: subosito/flutter-action@v2 + - uses: dart-lang/setup-dart@v1 + - name: Install dependencies + run: flutter pub get + # Here you can insert custom steps you need + # - run: dart tool/generate-code.dart + - name: Publish + run: flutter pub publish --force