Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-skip-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cteq3132 committed May 13, 2024
2 parents 52b4b43 + a4ce4c3 commit d154644
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish-to-pub-on-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to pub.dev on tag
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish:
runs-on: ubuntu-latest

# Required for publishing to pub.dev
permissions:
id-token: write

steps:
- uses: actions/checkout@v2

- uses: dart-lang/setup-dart@v1

- id: dotenv
uses: falti/[email protected]
with:
path: .github/workflows/.env

- uses: subosito/[email protected]
with:
flutter-version: ${{ steps.dotenv.outputs.flutter_version }}
channel: "stable"
cache: true
cache-key: flutter-macos-${{ steps.dotenv.outputs.flutter_version }}
cache-path: ${{ runner.tool_cache }}/flutter-${{ steps.dotenv.outputs.flutter_version }}

- name: Install Dependencies
run: flutter pub get

- name: Publish to pub.dev
run: flutter pub publish --force

0 comments on commit d154644

Please sign in to comment.