Skip to content

Commit

Permalink
Merge pull request #97 from RatakondalaArun/cd/update-workflows
Browse files Browse the repository at this point in the history
feat(workflows): updated workflow version
  • Loading branch information
RatakondalaArun committed Apr 22, 2023
2 parents fe1124b + 167d556 commit e2b52f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ jobs:
name: 🧪 Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Checkout
uses: actions/[email protected]

- name: 🔧 Setup Dart SDK
uses: dart-lang/[email protected]
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1.5.0

- name: ⏬ Get Depdendencies
run: dart pub get
Expand All @@ -27,29 +28,21 @@ jobs:
run: dart analyze

publish:
name: 🚀 Publish to pub.dev
runs-on: ubuntu-latest
needs: [tests]
steps:
- uses: actions/[email protected]

- name: 🔧 Setup Dart SDK
uses: dart-lang/[email protected]

- name: 🚀Publish
uses: RatakondalaArun/[email protected]
with:
creditionals: ${{secrets.PUB_CREDITIONALS}}
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
permissions:
id-token: write

docs:
name: 📄 Publish docs to Github pages
runs-on: ubuntu-latest
needs: [publish]
steps:
- uses: actions/[email protected]
- name: Checkout
uses: actions/[email protected]

- name: 📐 Setup Dart SDK
uses: dart-lang/[email protected]
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1.5.0

- name: 🧬 Generate docs
run: dartdoc --output docs
Expand All @@ -58,7 +51,7 @@ jobs:
run: tree

- name: 📢 Publish docs
uses: JamesIves/[email protected].2
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: docs
folder: docs
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ jobs:
name: 🧪 Tests
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Checkout
uses: actions/[email protected]

- name: 🔧 Setup Dart SDK
uses: dart-lang/[email protected]
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1.5.0

- name: ⏬ Install dependencies
run: dart pub get
Expand Down

0 comments on commit e2b52f5

Please sign in to comment.