-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.12 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
42
43
name: Release Package
on:
workflow_dispatch:
concurrency:
group: release
cancel-in-progress: true
jobs:
package_and_publish:
name: Package and Publish
runs-on: ubuntu-latest
permissions:
contents: 'write'
id-token: 'write'
steps:
- 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
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: actions/checkout@v4
- name: generate code
run: just
- name: release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
extra_plugins: |
@semantic-release/exec
@semantic-release/git
@semantic-release/changelog