Merge pull request #100 from Prime-Holding/develop #12
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
name: 'Publish widget_toolkit to pub.dev' | |
on: | |
push: | |
tags: | |
- 'widget_toolkit-v[0-9]+.[0-9]+.[0-9]+*' | |
# Publish using custom workflow | |
jobs: | |
publish: | |
name: 'Publish widget_toolkit to pub.dev' | |
environment: pub.dev | |
permissions: | |
id-token: write # This is required for authentication using OIDC | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/[email protected] | |
with: | |
channel: "stable" | |
- uses: dart-lang/setup-dart@v1 | |
- name: Install dependencies | |
working-directory: packages/widget_toolkit | |
run: dart pub get | |
- name: Dart format | |
working-directory: packages/widget_toolkit | |
run: dart format . | |
- name: Publish | |
working-directory: packages/widget_toolkit | |
run: dart pub publish --force |