diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8fb04693..b5cdcf86 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -8,8 +8,33 @@ on: # 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: - permissions: - id-token: write # Required for authentication using OIDC - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + 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 diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 25d12f58..00000000 --- a/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM dart:2.19 -ADD pubspec.yaml ./ -RUN dart pub get -FROM scratch \ No newline at end of file