Updated reamde and added a todo list #25
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pana: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1 | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2.10.0 | |
with: | |
flutter-version: "3.7.3" | |
channel: "stable" | |
- name: Install dependencies π¦ | |
run: flutter pub get | |
- name: Analyze π | |
run: flutter analyze | |
- name: Check Publish Warnings ππ½ | |
run: dart pub publish --dry-run | |
- name: Clean example project π§Ή | |
run: cd example && flutter clean . | |
# Pub credentials can be fount at: | |
# | |
# MAC: ~/Library/Application Support/dart as `pub-credentials.json` | |
# | |
# WINDOWS: %APPDATA%/dart/pub-credentials.json | |
# | |
# LINUX: $XDG_CONFIG_HOME/dart/pub-credentials.json | |
# or | |
# $HOME/.config/dart/pub-credentials.json | |
- name: Publish to Pub π | |
run: | | |
mkdir -p $HOME/.config/dart | |
cat <<EOF > $HOME/.config/dart/pub-credentials.json | |
${{ secrets.PUB_JSON }} | |
EOF | |
dart pub publish -f | |
# TODO(carlito): Create gh release | |
# - name: Create Release π¦ | |
# run: | | |
# TAG_VERSION=$(cat pubspec.yaml | grep version | cut -d " " -f 2 | tr -d '"') | |
# gh release create $TAG_VERSION -t $TAG_VERSION --generate-notes | |
# env: | |
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# TODO(carlito): Create automated release -> https://dart.dev/tools/pub/automated-publishing | |
# TODO(carlito): Add deployment to GitHub Pages |