|
1 |
| -name: "publish" |
| 1 | +name: publish |
2 | 2 |
|
3 | 3 | on:
|
| 4 | + workflow_call: |
4 | 5 | push:
|
5 | 6 | tags:
|
6 | 7 | - "getsecure-v[0-9]+.[0-9]+.[0-9]+"
|
7 | 8 | jobs:
|
8 |
| - oidc_debug_test: |
| 9 | + publish-packages: |
| 10 | + name: Publish packages |
| 11 | + environment: release |
9 | 12 | permissions:
|
10 |
| - contents: read |
11 |
| - id-token: write |
12 |
| - runs-on: ubuntu-latest |
13 |
| - name: A test of the oidc debugger |
| 13 | + contents: write |
| 14 | + id-token: write # Required for authentication using OIDC |
| 15 | + runs-on: [ubuntu-latest] |
14 | 16 | steps:
|
15 |
| - - name: Checkout Repository |
16 |
| - uses: actions/checkout@v4 |
| 17 | + - uses: actions/checkout@v4 |
17 | 18 | with:
|
18 | 19 | fetch-depth: 0
|
| 20 | + - uses: dart-lang/[email protected] |
| 21 | + - uses: bluefireteam/melos-action@v3 |
| 22 | + with: |
| 23 | + publish: true |
| 24 | +# name: "publish" |
| 25 | + |
| 26 | +# jobs: |
| 27 | +# oidc_debug_test: |
| 28 | +# permissions: |
| 29 | +# contents: read |
| 30 | +# id-token: write |
| 31 | +# runs-on: ubuntu-latest |
| 32 | +# name: A test of the oidc debugger |
| 33 | +# steps: |
| 34 | +# - name: Checkout Repository |
| 35 | +# uses: actions/checkout@v4 |
| 36 | +# with: |
| 37 | +# fetch-depth: 0 |
19 | 38 |
|
20 |
| - # - name: Debug OIDC Claims |
21 |
| - # uses: github/actions-oidc-debugger@main |
22 |
| - # with: |
23 |
| - # audience: "${{ github.server_url }}/${{ github.repository_owner }}" |
| 39 | +# # - name: Debug OIDC Claims |
| 40 | +# # uses: github/actions-oidc-debugger@main |
| 41 | +# # with: |
| 42 | +# # audience: "${{ github.server_url }}/${{ github.repository_owner }}" |
24 | 43 |
|
25 |
| - - uses: dart-lang/setup-dart@v1 |
| 44 | +# - uses: dart-lang/setup-dart@v1 |
26 | 45 |
|
27 |
| - # - name: Setup Flutter SDK |
28 |
| - # uses: flutter-actions/setup-flutter@v4 |
29 |
| - # with: |
30 |
| - # channel: stable |
31 |
| - # version: "3.27.0" |
| 46 | +# # - name: Setup Flutter SDK |
| 47 | +# # uses: flutter-actions/setup-flutter@v4 |
| 48 | +# # with: |
| 49 | +# # channel: stable |
| 50 | +# # version: "3.27.0" |
32 | 51 |
|
33 |
| - # - name: Setup pub.dev credentials |
34 |
| - # uses: flutter-actions/setup-pubdev-credentials@v1 |
| 52 | +# # - name: Setup pub.dev credentials |
| 53 | +# # uses: flutter-actions/setup-pubdev-credentials@v1 |
35 | 54 |
|
36 |
| - # - name: Set up Flutter |
37 |
| - # uses: subosito/flutter-action@v2 |
| 55 | +# # - name: Set up Flutter |
| 56 | +# # uses: subosito/flutter-action@v2 |
38 | 57 |
|
39 |
| - - run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/tags/} | cut -d'-' -f2,3 | cut -c2- )" >> $GITHUB_ENV |
40 |
| - - name: Extract Project Name from Tag |
41 |
| - run: echo "PROJECT_NAME=$(echo ${GITHUB_REF#refs/tags/} | cut -d'-' -f1)" >> $GITHUB_ENV |
| 58 | +# - run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/tags/} | cut -d'-' -f2,3 | cut -c2- )" >> $GITHUB_ENV |
| 59 | +# - name: Extract Project Name from Tag |
| 60 | +# run: echo "PROJECT_NAME=$(echo ${GITHUB_REF#refs/tags/} | cut -d'-' -f1)" >> $GITHUB_ENV |
42 | 61 |
|
43 |
| - - name: Get GITHUB_ENV |
44 |
| - run: cat $GITHUB_ENV |
| 62 | +# - name: Get GITHUB_ENV |
| 63 | +# run: cat $GITHUB_ENV |
45 | 64 |
|
46 |
| - - name: pub get |
47 |
| - run: dart pub get |
| 65 | +# - name: pub get |
| 66 | +# run: dart pub get |
48 | 67 |
|
49 |
| - # - run: sed -i "s|^version: .*|version: ${RELEASE_VERSION}|" pubspec.yaml |
50 |
| - - run: dart pub publish --skip-validation --force |
| 68 | +# # - run: sed -i "s|^version: .*|version: ${RELEASE_VERSION}|" pubspec.yaml |
| 69 | +# - run: dart pub publish --skip-validation --force |
0 commit comments