Skip to content

Commit

Permalink
Merge pull request #25 from syaiful-aa/dev/test
Browse files Browse the repository at this point in the history
add publish workflow
  • Loading branch information
syaiful-aa authored Jun 28, 2024
2 parents b2dc448 + cf092ab commit e714c11
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish-cloudsmith.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
# with:
# hosted_link: ${{ env.CLOUDSMITH_REPOSITORY }}

# - name: publish
# run: dart pub publish --force

- name: simulate publish
run: |
git status
echo "publish"

0 comments on commit e714c11

Please sign in to comment.