docs: add July HarmonyOS development guidance #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build dist | |
| on: | |
| pull_request: | |
| paths: | |
| - 'harmonyos-development/**' | |
| - 'scripts/build-dist.sh' | |
| - 'scripts/validate-skill.sh' | |
| - 'scripts/check-frontmatter.py' | |
| - '.github/workflows/build-dist.yml' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'harmonyos-development/**' | |
| - 'scripts/build-dist.sh' | |
| - 'scripts/validate-skill.sh' | |
| - 'scripts/check-frontmatter.py' | |
| - '.github/workflows/build-dist.yml' | |
| - '!dist/**' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: build-dist-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-dist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: true | |
| - name: Validate skill | |
| run: bash scripts/validate-skill.sh | |
| - name: Build dist | |
| run: bash scripts/build-dist.sh | |
| - name: Commit generated dist | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| run: | | |
| if git diff --quiet -- dist; then | |
| echo "dist is already up to date." | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add dist | |
| git commit -m "chore: build dist [skip ci]" | |
| git push |