Skip to content

Commit

Permalink
auto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Aug 8, 2024
1 parent 06e9c93 commit 1964774
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# https://dart.dev/tools/pub/automated-publishing#publishing-packages-using-github-actions
# .github/workflows/pub.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@v4
with:
submodules: 'recursive'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- uses: dart-lang/setup-dart@v1
# Here you can insert custom steps you need
# - run: dart tool/generate-code.dart
- name: Publish
run: dart pub publish --force

0 comments on commit 1964774

Please sign in to comment.