Skip to content

Commit

Permalink
add publish mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhilash-Chandran committed Aug 2, 2020
1 parent 52718a1 commit d964eb4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
Expand All @@ -16,8 +16,8 @@ jobs:
with:
channel: "stable"
- run: flutter pub get
- run: flutter test test\functionality_test.dart
test_windows:
- run: flutter test test/functionality_test.dart
build_test_windows:
name: Build number_inc_dec on stable
runs-on: windows-latest
steps:
Expand All @@ -31,15 +31,15 @@ jobs:
- run: flutter pub get
- run: flutter test

# publish:
# name: Publish number_inc_dec to pub.dev
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Publish
# uses: k-paxian/dart-package-publisher@master
# with:
# credentialJson: ${{ secrets.CREDENTIAL_JSON }}
# skipTests: true
publish:
name: Publish number_inc_dec to pub.dev
needs: [build, build_test_windows]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Publish
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
skipTests: true

0 comments on commit d964eb4

Please sign in to comment.