Skip to content

update actions

update actions #28

Workflow file for this run

name: Publish plugin
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: temurin
java-version: "17"
- name: Flutter action
uses: subosito/[email protected]
with:
channel: stable
- name: Flutter version
run: flutter --version
- name: Download pub dependencies
run: flutter pub get
- name: Upgrade pub dependencies
run: flutter pub upgrade
- name: Run analyzer
run: flutter analyze --fatal-infos
- name: Run tests
run: flutter test --coverage
- name: Check Publish Warnings
run: flutter pub publish --dry-run
publish:
needs: 'test'
permissions:
id-token: write # Required for authentication using OIDC
uses: git-elliot/setup-dart/.github/workflows/publish.yml@main # Added build_runner step
with:
environment: 'pub.dev'