Skip to content

Commit

Permalink
Update release job
Browse files Browse the repository at this point in the history
  • Loading branch information
crow committed Nov 16, 2024
1 parent ddc7a74 commit c379e33
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,6 @@ jobs:
echo ${delimiter}
} >> $GITHUB_OUTPUT
publish-dry-run:
needs: [ prepare-release ]
if: ${{ inputs.dry_run }}
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
dry-run: true
working-directory: .

publish:
needs: [ prepare-release ]
if: ${{ !inputs.dry_run }}
Expand All @@ -76,6 +66,18 @@ jobs:
with:
working-directory: .

publish-check:
needs: [ prepare-release ]
if: ${{ inputs.dry_run }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Publish dry run
run: dart pub publish --dry-run

create-github-release:
runs-on: ubuntu-latest
needs: [ prepare-release, publish ]
Expand Down

0 comments on commit c379e33

Please sign in to comment.