Skip to content

Commit 9a837fb

Browse files
authored
Merge pull request #30 from FlutterGen/publish-pub-dev
Auto release to pub.dev
2 parents 3df19fe + aa9f807 commit 9a837fb

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
name: Publishing for ${{ matrix.os }}
10+
name: Build for ${{ matrix.os }}
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
fail-fast: false
@@ -59,4 +59,22 @@ jobs:
5959
bin/${{ matrix.target }}/fluttergen-${{ matrix.artifact_prefix }}.tar.gz
6060
bin/${{ matrix.target }}/fluttergen-${{ matrix.artifact_prefix }}.sha256
6161
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
64+
65+
publish:
66+
name: Publishing
67+
runs-on: macos-latest
68+
69+
steps:
70+
- name: Checking out sources
71+
uses: actions/checkout@v2
72+
73+
- name: Publish to pub.dev
74+
uses: sakebook/[email protected]
75+
with:
76+
credential: ${{ secrets.CREDENTIAL_JSON }}
77+
flutter_package: false
78+
skip_test: true
79+
dry_run: true
80+

0 commit comments

Comments
 (0)