Skip to content

Merge pull request #171 from Workiva/O11Y-4632 #11

Merge pull request #171 from Workiva/O11Y-4632

Merge pull request #171 from Workiva/O11Y-4632 #11

Workflow file for this run

name: Publish to pub.dev
on:
push:
tags:
# Releases
- '[0-9]+.[0-9]+.[0-9]+'
# Release Candidates
- '[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
permissions:
contents: write
id-token: write
pull-requests: write
jobs:
create-sbom-release-asset:
name: Create SBOM Release Asset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish SBOM to Release Assets
uses: anchore/sbom-action@v0
with:
path: ./
format: cyclonedx-json
publish:
name: Publish to pub.dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: Install dependencies
run: dart pub get
- name: Publish - dry run
run: dart pub publish --dry-run --skip-validation
- name: Publish
run: dart pub publish -f