diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml new file mode 100644 index 00000000..b7d9cb31 --- /dev/null +++ b/.github/workflows/dart.yml @@ -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