v3.1.0 #26
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
# Do not run workflow for now | |
name: Publish | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
container: | |
image: dart:latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Install Cider | |
run: dart pub global activate cider | |
- name: Set new version | |
run: dart pub global run cider version ${{ github.event.release.tag_name }} | |
- name: Set a new release | |
run: dart pub global run cider release | |
- name: Build Runner | |
run: dart pub run build_runner build --delete-conflicting-outputs | |
- name: Run tests | |
run: dart pub run test | |
- name: Publish Dart/Flutter package | |
uses: sakebook/[email protected] | |
with: | |
credential: ${{ secrets.PUB_CREDENTIALS }} | |
flutter_package: false |