-
-
Notifications
You must be signed in to change notification settings - Fork 67
45 lines (43 loc) · 1.4 KB
/
release-please.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
44
45
name: Release Please
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'openfoodfacts'
steps:
- name: Release-Please
id: release
uses: GoogleCloudPlatform/release-please-action@v4
with:
token: ${{ secrets.OPENFOODFACTS_BOT_PAT }}
release-type: dart
# - name: Chekout code
# if: ${{ steps.release.outputs.release_created }}
# uses: actions/checkout@v3
#
# - name: Setup Dart
# if: ${{ steps.release.outputs.release_created }}
# uses: dart-lang/setup-dart@v1.3
#
# - name: Install dependencies
# if: ${{ steps.release.outputs.release_created }}
# run: dart pub get .
#
# - name: Set version
# if: ${{ steps.release.outputs.release_created }}
# run: dart pub global activate cider && cider version "${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}"
#
# - name: Setup credentials
# if: ${{ steps.release.outputs.release_created }}
# run: |
# cat <<EOF > $PUB_CACHE/credentials.json
# ${{ secrets.PUB_DEV_CREDENTIALS_JSON }}
# EOF
#
# - name: Publish package
# if: ${{ steps.release.outputs.release_created }}
# run: dart pub publish --force
#