-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.03 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release Package
on:
push:
branches:
- main
concurrency:
group: release
cancel-in-progress: true
jobs:
package_and_publish:
name: Package and Publish
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.DEPLOY_TOKEN }}
- uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- uses: dart-lang/setup-dart@v1
with:
sdk: stable
- uses: subosito/flutter-action@v2
with:
channel: stable
- run: gcloud auth print-identity-token --audiences=https://pub.dev | dart pub token add https://pub.dev
- name: release
uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/exec
@semantic-release/git
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}