Skip to content

Commit d0f12ac

Browse files
committed
+Test workflow 2
1 parent c2a3b5d commit d0f12ac

File tree

1 file changed

+14
-24
lines changed

1 file changed

+14
-24
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
1-
##.title
2-
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
3-
##
4-
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
5-
## source code is governed by an MIT-style license described in the LICENSE
6-
## file located in this project's root directory.
7-
##
8-
## See: https://opensource.org/license/mit
9-
##
10-
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
11-
##.title~
12-
1+
# .github/workflows/publish.yml
132
name: Publish to pub.dev
143

15-
## -----------------------------------------------------------------------------
16-
174
on:
185
push:
196
tags:
20-
# This regex matches tags like 'v1.2.3' and 'v1.2.3+4'
21-
- 'v[0-9]+.[0-9]+.[0-9]+*'
22-
23-
## -----------------------------------------------------------------------------
7+
- 'v[0-9]+.[0-9]+.[0-9]+' # tag pattern on pub.dev: 'v{{version}'
248

9+
# Publish using custom workflow
2510
jobs:
2611
publish:
27-
# This permission is required for OIDC authentication with pub.dev.
2812
permissions:
29-
id-token: write
30-
31-
# This calls the official, reusable workflow from the Dart team.
32-
# It handles checkout, setup, auth, and publishing automatically.
33-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13+
id-token: write # Required for authentication using OIDC
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: dart-lang/setup-dart@v1
18+
- name: Install dependencies
19+
run: dart pub get
20+
# Here you can insert custom steps you need
21+
# - run: dart tool/generate-code.dart
22+
- name: Publish
23+
run: dart pub publish --force

0 commit comments

Comments
 (0)