Skip to content

Commit 8b20b4a

Browse files
fux
1 parent bf41037 commit 8b20b4a

File tree

1 file changed

+50
-31
lines changed

1 file changed

+50
-31
lines changed

.github/workflows/publish.yaml

Lines changed: 50 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,69 @@
1-
name: "publish"
1+
name: publish
22

33
on:
4+
workflow_call:
45
push:
56
tags:
67
- "getsecure-v[0-9]+.[0-9]+.[0-9]+"
78
jobs:
8-
oidc_debug_test:
9+
publish-packages:
10+
name: Publish packages
11+
environment: release
912
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]
1416
steps:
15-
- name: Checkout Repository
16-
uses: actions/checkout@v4
17+
- uses: actions/checkout@v4
1718
with:
1819
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
1938

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 }}"
2443

25-
- uses: dart-lang/setup-dart@v1
44+
# - uses: dart-lang/setup-dart@v1
2645

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"
3251

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
3554

36-
# - name: Set up Flutter
37-
# uses: subosito/flutter-action@v2
55+
# # - name: Set up Flutter
56+
# # uses: subosito/flutter-action@v2
3857

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
4261

43-
- name: Get GITHUB_ENV
44-
run: cat $GITHUB_ENV
62+
# - name: Get GITHUB_ENV
63+
# run: cat $GITHUB_ENV
4564

46-
- name: pub get
47-
run: dart pub get
65+
# - name: pub get
66+
# run: dart pub get
4867

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

Comments
 (0)