Skip to content

Commit

Permalink
Updated the GitHub action.
Browse files Browse the repository at this point in the history
  • Loading branch information
zulfahmi93 committed May 12, 2023
1 parent cebced2 commit 2f1cf87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Flutter
uses: subosito/flutter-action@v1
- name: Setup Credentials
shell: bash
env:
CREDENTIALS_JSON: ${{ secrets.CREDENTIALS_JSON }}
run: |
sh ./prepublish.sh
- name: Re-format the codes
run: flutter format .
- name: Check Publish Warnings
run: dart pub publish --dry-run
- name: Publish Package
run: dart pub publish -f
uses: subosito/flutter-action@v2
with:
channel: 'stable'

- name: Publish
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIALS_JSON }}
format: true
force: true
8 changes: 0 additions & 8 deletions prepublish.sh

This file was deleted.

0 comments on commit 2f1cf87

Please sign in to comment.