Update packages, update docs, bump to v3.0.0 #20
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
# https://github.com/dart-lang/ecosystem/blob/main/.github/workflows/publish.yaml | |
# https://github.com/dart-lang/ecosystem/tree/main/pkgs/firehose | |
# A CI configuration to auto-publish pub packages. | |
name: Publish | |
on: | |
pull_request: | |
branches: [ main ] | |
types: [opened, synchronize, reopened, labeled, unlabeled] | |
push: | |
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ] | |
jobs: | |
Publish: | |
permissions: | |
id-token: write | |
pull-requests: write | |
name: 'Publish package' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Install firehose | |
run: dart pub global activate firehose | |
- name: Validate packages | |
if: ${{ github.event_name == 'pull_request' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ISSUE_NUMBER: ${{ github.event.number }} | |
PR_LABELS: "${{ join(github.event.pull_request.labels.*.name) }}" | |
run: dart pub global run firehose --validate | |
- name: Publish packages | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: dart pub global run firehose --publish |