|
4 | 4 | push:
|
5 | 5 | branches: [main]
|
6 | 6 | tags:
|
7 |
| - - '*' |
| 7 | + - 'v[0-9]+.[0-9]+.[0-9]+*' |
8 | 8 |
|
9 | 9 | pull_request:
|
10 | 10 | branches: [main]
|
@@ -54,30 +54,20 @@ jobs:
|
54 | 54 | if: ${{ github.ref_type == 'tag' }}
|
55 | 55 | needs: build
|
56 | 56 | name: Deploy package
|
| 57 | + permissions: |
| 58 | + id-token: write |
57 | 59 | runs-on: ubuntu-latest
|
58 |
| - |
59 | 60 | steps:
|
60 |
| - - name: Configure enviroment |
61 |
| - uses: actions/checkout@v3 |
62 |
| - - name: Download flutter |
63 |
| - uses: subosito/flutter-action@v2 |
64 |
| - with: |
65 |
| - channel: 'stable' |
66 |
| - - name: Setup pub credentials |
67 |
| - shell: bash |
68 |
| - env: |
69 |
| - PUB_DEV_PUBLISH_ACCESS_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }} |
70 |
| - PUB_DEV_PUBLISH_REFRESH_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }} |
71 |
| - run: | |
72 |
| - sh ./tool/pub_login.sh |
73 |
| - - name: Publish package |
74 |
| - run: dart pub publish -v -f |
75 |
| - - name: Build changelog |
76 |
| - id: github_release |
77 |
| - uses: mikepenz/release-changelog-builder-action@v3 |
78 |
| - env: |
79 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
80 |
| - - name: Create release |
81 |
| - |
82 |
| - with: |
83 |
| - body: ${{steps.github_release.outputs.changelog}} |
| 61 | + - uses: actions/checkout@v3 |
| 62 | + - uses: dart-lang/setup-dart@v1 |
| 63 | + - name: Publish package |
| 64 | + run: dart pub publish -v -f |
| 65 | + - name: Build changelog |
| 66 | + id: github_release |
| 67 | + uses: mikepenz/release-changelog-builder-action@v3 |
| 68 | + env: |
| 69 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 70 | + - name: Create release |
| 71 | + |
| 72 | + with: |
| 73 | + body: ${{steps.github_release.outputs.changelog}} |
0 commit comments