Prepare 1.2.0 release #3
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| name: Build release artifacts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Install ShellCheck | |
| run: sudo apt-get update && sudo apt-get install -y shellcheck | |
| - name: Validate | |
| run: | | |
| bash -n install.sh | |
| shellcheck install.sh bin/localaibundle tests/run.sh tests/install-sandbox.sh scripts/package-release.sh scripts/package-pkg.sh scripts/package-dmg.sh scripts/notarize-artifact.sh scripts/notarize-pkg.sh scripts/demo.sh scripts/docker-test.sh | |
| python3 -m py_compile scripts/*.py | |
| bash tests/run.sh | |
| bash tests/install-sandbox.sh | |
| - name: Package tarball | |
| run: bash scripts/package-release.sh | |
| - name: Upload release artifacts | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then | |
| gh release upload "$GITHUB_REF_NAME" dist/*.tar.gz dist/*.sha256 dist/*.json --clobber | |
| else | |
| gh release create "$GITHUB_REF_NAME" dist/*.tar.gz dist/*.sha256 dist/*.json \ | |
| --title "LocalAIbundle ${GITHUB_REF_NAME#v}" \ | |
| --notes "Automated release artifacts for ${GITHUB_REF_NAME}." | |
| fi |