Skip to content

Commit

Permalink
Add github action to publish package to pub.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cristipufu committed Jun 11, 2024
1 parent 767867a commit fda37c9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to pub.dev

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Setup Flutter SDK and automated pub.dev credentials
- uses: flutter-actions/setup-flutter@v3
- uses: flutter-actions/setup-pubdev-credentials@v1

- name: Install dependencies
run: flutter pub get

- name: Publish
run: flutter pub publish

0 comments on commit fda37c9

Please sign in to comment.