Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
RafaelBarbosatec committed Nov 16, 2024
1 parent bffb05a commit 89cbd18
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish plugin

on:
release:
types: [published]
workflow_dispatch:
# release:
# types: [published]

jobs:
publish:
@@ -19,10 +20,11 @@ jobs:
with:
channel: 'stable'
cache: true
- name: Publish
uses: sakebook/[email protected]
with:
credential: ${{ secrets.CREDENTIAL_JSON }}
flutter_package: true
skip_test: true
dry_run: true
- name: Copy credentials
run: |
mkdir -p ~/Library/Application\ Support/dart
cat <<EOF > ~/Library/Application\ Support/dart/pub-credentials.json ${{ secrets.CREDENTIAL_JSON }} EOF
mkdir -p ~/.pub-cache
ln -s ~/Library/Application\ Support/dart/pub-credentials.json credentials.json
- name: Publishing
run: flutter pub publish -f

0 comments on commit 89cbd18

Please sign in to comment.