Skip to content

Commit

Permalink
Merge pull request #164 from Workiva/myeager-wf/gha-publish
Browse files Browse the repository at this point in the history
Update GHA publishing steps
  • Loading branch information
rmconsole2-wf authored Apr 11, 2024
2 parents 6e8559b + 1f8d135 commit f00bb98
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions Dockerfile

This file was deleted.

0 comments on commit f00bb98

Please sign in to comment.