Skip to content

v1.4.1

v1.4.1 #43

Workflow file for this run

name: Publish Package
on:
release:
types: [published]
jobs:
validate-plugin:
uses: ./.github/workflows/validate_plugin.yml
with:
working_directory: ./package
release:
needs: validate-plugin
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./package
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v3
- name: 🎯 Setup Dart
uses: dart-lang/[email protected]
with:
sdk: "3.3.4"
- name: 📦 Install Dependencies
run: dart pub get
- name: Install pana
run: dart pub global activate pana
- name: Run pana
run: pana --line-length 100 --no-warning --exit-code-threshold 19 .
- name: Publish --dry-run
run: dart run ../github_scripts/dry_publish.dart
- name: ⚙ Setup Pub Credentials
run: |
mkdir -p ~/.config/dart
echo "${{secrets.PUBDEV}}" | base64 --decode >> ~/.config/dart/pub-credentials.json
- name: 🚀 Publish Package
run: dart pub publish -f