Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/publish-android-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ jobs:
echo "value=${VERSION}" >> "$GITHUB_OUTPUT"

- name: Build SDK and run central publication gate
run: gradle -p clients/android testReleaseUnitTest verifyReleaseElfAlignment -PVERSION_NAME=${{ steps.version.outputs.value }}
env:
RESOLVED_VERSION: ${{ steps.version.outputs.value }}
run: gradle -p clients/android testReleaseUnitTest verifyReleaseElfAlignment "-PVERSION_NAME=$RESOLVED_VERSION"

- name: Verify local and remote publication task graphs
env:
Expand All @@ -70,4 +72,5 @@ jobs:
- name: Publish SDK to GitHub Packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gradle -p clients/android publish -PVERSION_NAME=${{ steps.version.outputs.value }}
RESOLVED_VERSION: ${{ steps.version.outputs.value }}
run: gradle -p clients/android publish "-PVERSION_NAME=$RESOLVED_VERSION"
10 changes: 7 additions & 3 deletions .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,25 +92,29 @@ jobs:

- name: Publish dry run
if: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}
run: npm publish "${{ steps.pack.outputs.path }}" --access public --dry-run
run: npm publish "$PACKAGE_PATH" --access public --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
PACKAGE_PATH: ${{ steps.pack.outputs.path }}

- name: Publish to npm
if: ${{ github.event_name != 'workflow_dispatch' || !inputs.dry_run }}
run: npm publish "${{ steps.pack.outputs.path }}" --access public
run: npm publish "$PACKAGE_PATH" --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
PACKAGE_PATH: ${{ steps.pack.outputs.path }}

- name: Summary
shell: bash
env:
RESOLVED_VERSION: ${{ steps.version.outputs.value }}
run: |
{
echo "### CLI publish"
echo
echo "| Field | Value |"
echo "|---|---|"
echo "| Package | \`@botiverse/hands-cli\` |"
echo "| Version | \`${{ steps.version.outputs.value }}\` |"
echo "| Version | \`${RESOLVED_VERSION}\` |"
echo "| Dry run | \`${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}\` |"
} >> "$GITHUB_STEP_SUMMARY"
4 changes: 3 additions & 1 deletion .github/workflows/publish-electron-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ jobs:

- name: Summary
shell: bash
env:
RESOLVED_VERSION: ${{ steps.version.outputs.value }}
run: |
{
echo "### Electron SDK publish"
echo
echo "| Field | Value |"
echo "|---|---|"
echo "| Package | \`@botiverse/hands-electron\` |"
echo "| Version | \`${{ steps.version.outputs.value }}\` |"
echo "| Version | \`${RESOLVED_VERSION}\` |"
echo "| Dry run | \`${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}\` |"
} >> "$GITHUB_STEP_SUMMARY"
4 changes: 3 additions & 1 deletion .github/workflows/publish-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,15 @@ jobs:

- name: Summary
shell: bash
env:
RESOLVED_VERSION: ${{ steps.version.outputs.value }}
run: |
{
echo "### Hands Node SDK publish"
echo
echo "| Field | Value |"
echo "|---|---|"
echo "| Package | \`@botiverse/hands-node\` |"
echo "| Version | \`${{ steps.version.outputs.value }}\` |"
echo "| Version | \`${RESOLVED_VERSION}\` |"
echo "| Dry run | \`${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}\` |"
} >> "$GITHUB_STEP_SUMMARY"
9 changes: 6 additions & 3 deletions .github/workflows/publish-ohos-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
shell: bash
env:
REQUESTED_VERSION: ${{ inputs.version }}
RESOLVED_VERSION: ${{ steps.version.outputs.value }}
run: |
set -euo pipefail
packaged_manifest="$RUNNER_TEMP/hands-oh-package.json5"
Expand All @@ -113,8 +114,8 @@ jobs:
"${GITHUB_REF_TYPE}" \
"${GITHUB_REF_NAME}" \
"${REQUESTED_VERSION:-}")"
if [[ "$packaged_version" != "${{ steps.version.outputs.value }}" ]]; then
echo "Packed HAR version $packaged_version differs from resolved version ${{ steps.version.outputs.value }}." >&2
if [[ "$packaged_version" != "${RESOLVED_VERSION}" ]]; then
echo "Packed HAR version $packaged_version differs from resolved version ${RESOLVED_VERSION}." >&2
exit 1
fi

Expand Down Expand Up @@ -197,13 +198,15 @@ jobs:
- name: Summary
if: always()
shell: bash
env:
RESOLVED_VERSION: ${{ steps.version.outputs.value }}
run: |
{
echo "### OHOS SDK"
echo
echo "| Field | Value |"
echo "|---|---|"
echo "| Package | \`@botiverse/hands\` |"
echo "| Version | \`${{ steps.version.outputs.value }}\` |"
echo "| Version | \`${RESOLVED_VERSION}\` |"
echo "| Dry run | \`${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && inputs.dry_run) }}\` |"
} >> "$GITHUB_STEP_SUMMARY"
Loading