Skip to content

Commit

Permalink
Update: Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ywake committed Feb 17, 2024
1 parent 87e59c4 commit 922ebe8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish to pub.dev

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
- name: Analyze
run: dart analyze --fatal-infos
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- uses: dart-lang/setup-dart@v1
# - uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: flutter pub get
# Here you can insert custom steps you need
# - run: dart tool/generate-code.dart
- name: Publish
run: dart pub publish --force
run: flutter pub publish --force

0 comments on commit 922ebe8

Please sign in to comment.