Merge pull request #15 from bin-utokyo/cli/fix-i18n #11
Workflow file for this run
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: Create Release and Upload Assets | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Create dist directory | |
| run: mkdir dist | |
| - name: Generate Manifest and Bootstrap Package | |
| run: | | |
| uv run davis manage generate-manifest --output dist/manifest.json --tag ${{ github.ref_name }} --branch main | |
| uv run davis manage create-bootstrap --output dist/dvc-bootstrap.zip | |
| - name: Compile translations | |
| run: uv run pybabel compile -d packages/dataset_cli/src/dataset_cli/locales | |
| - name: Build Python package | |
| run: uv build --all-packages --out-dir dist | |
| - name: Create GitHub Release | |
| id: create_release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/* | |
| token: ${{ secrets.GITHUB_TOKEN }} |