Skip to content

Commit 1418151

Browse files
ci: update deployment pipeline config
1 parent b6424d4 commit 1418151

File tree

1 file changed

+16
-26
lines changed

1 file changed

+16
-26
lines changed

.github/workflows/base.yaml

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [main]
66
tags:
7-
- '*'
7+
- 'v[0-9]+.[0-9]+.[0-9]+*'
88

99
pull_request:
1010
branches: [main]
@@ -54,30 +54,20 @@ jobs:
5454
if: ${{ github.ref_type == 'tag' }}
5555
needs: build
5656
name: Deploy package
57+
permissions:
58+
id-token: write
5759
runs-on: ubuntu-latest
58-
5960
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-
uses: softprops/[email protected]
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+
uses: softprops/[email protected]
72+
with:
73+
body: ${{steps.github_release.outputs.changelog}}

0 commit comments

Comments
 (0)