Skip to content

Commit

Permalink
chore: generated code for commit e9f25be. [skip ci]
Browse files Browse the repository at this point in the history
Co-authored-by: Mouaad Aallam <mouaad.aallam@algolia.com>
  • Loading branch information
algolia-bot and aallam committed Jul 4, 2023
1 parent e9f25be commit 9a4c192
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ for package_dir in "${!packages[@]}"; do
echo "Creating new tag..."
git tag "$tag_prefix-$new_version"
git push origin "$tag_prefix-$new_version"
echo "publish=true" >> "$GITHUB_OUTPUT"
echo "$tag_prefix=true" >> "$GITHUB_OUTPUT"
else
echo "Version was not updated in $package_dir."
fi
Expand Down
66 changes: 46 additions & 20 deletions clients/algoliasearch-client-dart/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
check:
name: Run checks
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: "startsWith(github.event.head_commit.message, 'chore: release')"

steps:
Expand All @@ -27,7 +27,7 @@ jobs:
version:
name: Tag versions
needs: check
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand All @@ -41,25 +41,51 @@ jobs:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}

outputs:
PUBLISH: ${{ steps.version.outputs.publish }}
PUBLISH_CORE: ${{ steps.version.outputs.core }}
PUBLISH_SEARCH: ${{ steps.version.outputs.search }}
PUBLISH_INSIGHTS: ${{ steps.version.outputs.insights }}
PUBLISH_ALGOLIASEARCH: ${{ steps.version.outputs.algoliasearch }}

publish:
publish_algoliasearch:
needs: version
name: Publish
runs-on: ubuntu-20.04
if: ${{ needs.version.outputs.PUBLISH == 'true' }}
name: Publish AlgoliaSearch
if: ${{ needs.version.outputs.PUBLISH_ALGOLIASEARCH == 'true' }}
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
permissions:
id-token: write
environment: pub.dev
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1

- name: Install Tools
run: dart pub global activate melos
- name: Bootstrap Workspace
run: melos bootstrap
- name: Install dependencies
run: melos get
- name: Publish packages
run: melos publish --no-dry-run --yes
with:
environment: 'pub.dev'
working-directory: packages/algoliasearch

publish_core:
needs: version
name: Publish Client Core
if: ${{ needs.version.outputs.PUBLISH_CORE == 'true' }}
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
permissions:
id-token: write
with:
environment: 'pub.dev'
working-directory: packages/client-core

publish_search:
needs: version
name: Publish Search Client
if: ${{ needs.version.outputs.PUBLISH_SEARCH == 'true' }}
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
permissions:
id-token: write
with:
environment: 'pub.dev'
working-directory: packages/client-search

publish_insights:
needs: version
name: Publish Insights Client
if: ${{ needs.version.outputs.PUBLISH_INSIGHTS == 'true' }}
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
permissions:
id-token: write
with:
environment: 'pub.dev'
working-directory: packages/client-insights

0 comments on commit 9a4c192

Please sign in to comment.