-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable automatic deployment as it does not work yet (dart-lang/setup…
- Loading branch information
1 parent
88e4b97
commit e503568
Showing
3 changed files
with
21 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,14 @@ | ||
name: Publish to pub.dev | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
jobs: | ||
publish: | ||
# permissions: | ||
# id-token: write # Required for authentication using OIDC | ||
# uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | ||
# with: | ||
# working-directory: path/to/package/within/repository | ||
|
||
|
||
name: 'Publish to pub.dev' | ||
environment: ${{ inputs.environment }} | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout repository | ||
- uses: actions/checkout@v3 | ||
# Setup Dart SDK with JWT token | ||
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f | ||
# Minimal package setup and dry run checks. | ||
- name: Install dependencies | ||
run: flutter pub get | ||
working-directory: ${{ inputs.working-directory }} | ||
- name: Publish - dry run | ||
run: dart pub publish --dry-run | ||
working-directory: ${{ inputs.working-directory }} | ||
# Publishing... | ||
- name: Publish to pub.dev | ||
run: dart pub publish -f | ||
working-directory: ${{ inputs.working-directory }} | ||
#name: Publish to pub.dev | ||
# | ||
#on: | ||
# push: | ||
# tags: | ||
# - '[0-9]+.[0-9]+.[0-9]+*' | ||
# | ||
#jobs: | ||
# publish: | ||
# permissions: | ||
# id-token: write # Required for authentication using OIDC | ||
# uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | ||
# # with: | ||
# # working-directory: path/to/package/within/repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters