Skip to content

Commit 22fe4a6

Browse files
committed
abandoning approach from https://dart.dev/tools/pub/automated-publishing#publishing-packages-using-github-actions due to lack of support for flutter; initial work on approach from dart-lang/setup-dart#68 (comment)
1 parent 1c36ed4 commit 22fe4a6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build-and-deploy.yaml .github/workflows/build-deploy-and-publish.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,15 @@ jobs:
3636
steps:
3737
- uses: actions/deploy-pages@v4
3838
id: deployment
39+
publish:
40+
needs: build
41+
permissions:
42+
id-token: write
43+
steps:
44+
- uses: actions/github-script@v6
45+
with:
46+
script: |
47+
let pub_token = await core.getIDToken('https://pub.dev')
48+
core.exportVariable('PUB_TOKEN', pub_token)
49+
- if: startsWith(github.ref, 'refs/tags/v0.0.')
50+
run: flutter pub publish --dry-run

.github/workflows/publish.yaml

-12
This file was deleted.

0 commit comments

Comments
 (0)