Skip to content

Commit

Permalink
ci: 💚 Add CI to publish on release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralu committed Sep 30, 2024
1 parent 47a1aaf commit ebd77a3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to pub.dev

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+" # tag pattern on pub.dev: '{{version}}'
- "[0-9]+.[0-9]+.[0-9]+-*" # tag pattern on pub.dev: '{{version}}-{suffix}'

# Publish using custom workflow
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.22.3"
- name: Install dependencies
run: flutter pub get
- name: Publish
run: dart pub publish --force

0 comments on commit ebd77a3

Please sign in to comment.