|
| 1 | +# Trigger this workflow to manually create a release of the flutter package. |
| 2 | + |
1 | 3 | name: release-manual |
2 | 4 | on: |
3 | | - release: |
4 | | - types: |
5 | | - - published |
| 5 | + workflow_dispatch: |
| 6 | + inputs: |
| 7 | + ref: |
| 8 | + description: 'Reference (tag / SHA):' |
| 9 | + required: true |
| 10 | + default: '' |
| 11 | + package: |
| 12 | + description: 'Package' |
| 13 | + required: true |
| 14 | + default: '' |
| 15 | + type: choice |
| 16 | + options: |
| 17 | + - dart |
| 18 | + - flutter |
6 | 19 | jobs: |
7 | | - # dry-run: |
8 | | - # runs-on: ubuntu-latest |
9 | | - # outputs: |
10 | | - # dart_dry_run_success: ${{ steps.try-dart.outputs.success }} |
11 | | - # flutter_dry_run_success: ${{ steps.try-flutter.outputs.success }} |
12 | | - # steps: |
13 | | - # - name: Checkout code |
14 | | - # uses: actions/checkout@v3 |
15 | | - # - name: Dry run dart package |
16 | | - # uses: k-paxian/dart-package-publisher@v1.4 |
17 | | - # id: try-dart |
18 | | - # with: |
19 | | - # accessToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_ACCESS_TOKEN }} |
20 | | - # refreshToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_REFRESH_TOKEN }} |
21 | | - # relativePath: packages/dart |
22 | | - # format: true |
23 | | - # dryRunOnly: true |
24 | | - # - name: Dry run flutter package |
25 | | - # uses: k-paxian/dart-package-publisher@v1.4 |
26 | | - # id: try-flutter |
27 | | - # with: |
28 | | - # accessToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_ACCESS_TOKEN }} |
29 | | - # refreshToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_REFRESH_TOKEN }} |
30 | | - # relativePath: packages/flutter |
31 | | - # flutter: true |
32 | | - # format: true |
33 | | - # dryRunOnly: true |
34 | 20 | release: |
35 | 21 | runs-on: ubuntu-latest |
36 | | - # needs: dry-run |
37 | | - # if: needs.dry-run.outputs.dart_dry_run_success && needs.dry-run.outputs.flutter_dry_run_success |
38 | 22 | steps: |
39 | 23 | - name: Checkout code |
40 | 24 | uses: actions/checkout@v3 |
| 25 | + with: |
| 26 | + ref: ${{ github.event.inputs.ref }} |
41 | 27 | - name: Publish dart package |
| 28 | + if: github.event.inputs.package == 'dart' |
42 | 29 | uses: k-paxian/dart-package-publisher@v1.4 |
43 | 30 | with: |
44 | 31 | accessToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_ACCESS_TOKEN }} |
|
47 | 34 | format: true |
48 | 35 | dryRunOnly: true |
49 | 36 | - name: Publish flutter package |
| 37 | + if: github.event.inputs.package == 'flutter' |
50 | 38 | uses: k-paxian/dart-package-publisher@v1.4 |
51 | 39 | with: |
52 | 40 | accessToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_ACCESS_TOKEN }} |
|
0 commit comments