Skip to content

Commit

Permalink
Action added
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitEdathil committed Nov 23, 2021
1 parent fd94e3e commit fda8129
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dart_test_publist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: cd-action-test-publish
on:
release:
types: [published]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: 🔧 Setup Dart SDK
uses: dart-lang/[email protected]
- name: 🧪 Run tests
run: dart test

publish-to-pub:
runs-on: ubuntu-latest
needs: [tests] # only runs after the job successfully finishes
steps:
- uses: actions/[email protected]

- name: 🔧 Setup Dart SDK
uses: dart-lang/[email protected] # setups dart sdk on this machine
- name: 🚀Publish
uses: RatakondalaArun/[email protected]
with:
creditionals: ${{secrets.PUB_CREDITIONALS}}

0 comments on commit fda8129

Please sign in to comment.