Release v1.0.0+7 #7
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Publish package to pub.dev | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.7.3' | |
channel: 'stable' | |
- name: Run tests | |
run: flutter test --machine test | |
publish: | |
runs-on: ubuntu-latest | |
container: | |
image: google/dart:latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Credentials | |
uses: joutvhu/write-file@v1 | |
with: | |
path: ~/.pub-cache/credentials.json | |
contents: ${{ secrets.PUB_CREDENTIALS }} | |
write_mode: overwrite | |
- name: Publish package | |
run: pub publish -f |