diff --git a/.github/workflows/publish-cloudsmith.yml b/.github/workflows/publish-cloudsmith.yml new file mode 100644 index 0000000..0000e77 --- /dev/null +++ b/.github/workflows/publish-cloudsmith.yml @@ -0,0 +1,36 @@ +name: Publish Cloudsmith + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + +env: + CLOUDSMITH_REPOSITORY: https://dart.cloudsmith.io/agriaku-engineering/agriaku_design_system/ + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + # - name: setup flutter + # uses: subosito/flutter-action@v2 + # with: + # cache: true + + # - name: authenticate cloudsmith + # run: echo ${{ secrets.CLOUDSMITH_API_KEY }} | dart pub token add $CLOUDSMITH_REPOSITORY + + # - name: adjust pubspec + # uses: Agriaku/agriaku_app_actions/cloudsmith-dependencies@v1.10.0 + # with: + # hosted_link: ${{ env.CLOUDSMITH_REPOSITORY }} + + # - name: publish + # run: dart pub publish --force + + - name: simulate publish + run: | + git status + echo "publish"