diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 00000000..d89d870f --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,25 @@ +name: Publish + +on: + push: + tags: + # Releases + - '[0-9]+.[0-9]+.[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: + - name: Publish SBOM to Release Assets + with: + path: ./ + format: cyclonedx-json + publish: + Name: Publish to pub.dev + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1