Skip to content

Commit

Permalink
Github Actions cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMitkowski committed May 13, 2024
1 parent 02dda5a commit 8cdba93
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,25 @@ on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

env:
FLUTTER_VERSION: 3.19.6

jobs:
publish:
name: 'Publish to pub.dev'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install and set Flutter version
uses: subosito/[email protected]
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: stable
cache: true
- name: Install dependencies
run: dart pub get
run: flutter pub get
- name: Publish - dry run
run: dart pub publish --dry-run
run: flutter pub publish --dry-run
- name: Publish to pub.dev
run: dart pub publish -f
run: flutter pub publish -f
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install and set Flutter version
uses: subosito/[email protected]
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: stable
cache: true
# - name: Install dependencies
# run: dart pub get
- name: Publish - dry run
run: flutter pub publish --dry-run

0 comments on commit 8cdba93

Please sign in to comment.