v1.5.1 #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |