Skip to content

Commit

Permalink
Add github action file
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianMong committed Jan 30, 2024
1 parent 32341a2 commit 588c22a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: CICD afridoctor_ui

run-name: "Release ${{ github.ref_name }}"

on:
push:
tags:
- "v*.*.*"

jobs:
Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: subosito/flutter-action@v2
with:
flutter-version: "3.x"
channel: "stable"

- run: flutter --version

- name: Install dependencies
run: flutter pub get

- name: Authenticate
run: echo ${{ secrets.CLOUDSMITH_API_KEY }} | dart pub token add ${{ vars.PACKAGE_REPOSITORY_URL }}

- name: Publishing package
run: echo y | dart pub publish

0 comments on commit 588c22a

Please sign in to comment.