You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
811 B
34 lines
811 B
name: Publish to pub.dev
|
|
on:
|
|
push:
|
|
tags:
|
|
- "[0-9]+.[0-9]+.[0-9]+*" # tag-pattern on pub.dev: ''
|
|
|
|
jobs:
|
|
pana:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: subosito/flutter-action@v2
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
flutter packages get
|
|
flutter pub global activate pana
|
|
sudo apt-get install webp
|
|
|
|
- name: Verify Pub Score
|
|
run: ./.github/scripts/verify_pub_score.sh
|
|
|
|
publish:
|
|
needs: pana
|
|
environment: 'pub.dev'
|
|
permissions:
|
|
id-token: write # Required for authentication using OIDC
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 📚 Git Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- uses: ./.github/actions/publish_flutter_package
|
|
|