We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97f0983 commit 48bb0c7Copy full SHA for 48bb0c7
.github/workflows/publish.yml
@@ -1,13 +1,27 @@
1
name: Publish to pub.dev
2
3
on:
4
- push:
5
- tags:
6
- - "v[0-9]+.[0-9]+.[0-9]+*"
+ release:
+ types: [published]
7
8
jobs:
9
publish:
+ if: github.repository_owner == 'viamrobotics'
10
runs-on: [self-hosted, x64]
11
+ container:
12
+ image: ghcr.io/cirruslabs/flutter:3.10.6
13
+
14
+ name: "Publish to pub.dev"
15
permissions:
- id-token: "write"
- uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
16
+ id-token: write
17
+ steps:
18
+ - uses: actions/checkout@v3
19
20
+ - name: Install dependencies
21
+ run: flutter pub get
22
23
+ - name: Publish - dry run
24
+ run: flutter pub publish --dry-run
25
26
+ - name: Publish to pub.dev
27
+ run: flutter pub publish -f
0 commit comments