Skip to content

Commit

Permalink
Merge pull request #11 from wisemen-digital/publish-actions
Browse files Browse the repository at this point in the history
Update publish.yml
  • Loading branch information
Yani-Maassen authored Jun 4, 2024
2 parents 8667da0 + ac95b9f commit 149299b
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
# .github/workflows/publish.yml
name: Publish to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
- '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
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
# with:
# working-directory: path/to/package/within/repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable

- name: Install dependencies
run: flutter pub get

- name: Publish
run: dart pub publish --force

0 comments on commit 149299b

Please sign in to comment.