diff --git a/.github/workflows/primary.yml b/.github/workflows/primary.yml index e486692ff..b674ae321 100644 --- a/.github/workflows/primary.yml +++ b/.github/workflows/primary.yml @@ -2,9 +2,6 @@ name: BAML Runtime on: pull_request: - paths: - - "engine/**" - - ".github/workflows/primary.yml" branches: - canary push: @@ -89,9 +86,6 @@ jobs: - uses: Swatinem/rust-cache@v2 with: workspaces: engine - - name: Build Rust - run: cargo build - working-directory: engine - name: Test Rust run: cargo test working-directory: engine diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 924e04521..b58a9eaf5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -211,7 +211,7 @@ jobs: # authz is managed via OIDC configured at https://pypi.org/manage/project/baml-py/settings/publishing/ # it is pinned to this github actions filename, so renaming this file is not safe!! - name: Publish package to PyPI - if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }} + if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }} uses: pypa/gh-action-pypi-publish@release/v1 publish-to-npm: @@ -242,11 +242,11 @@ jobs: - name: Install dependencies run: pnpm install working-directory: engine/language_client_typescript - + - uses: actions/download-artifact@v4 with: name: bindings-* - + - name: create npm dirs run: pnpm napi create-npm-dirs working-directory: engine/language_client_typescript @@ -305,7 +305,22 @@ jobs: run: pnpm install --frozen-lockfile working-directory: typescript/ - name: Publish - if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }} + if: ${{ !startsWith(github.ref, 'refs/tags/test-release') }} run: | pnpm run vscode:publish --pre-release --no-git-tag-version -p ${{ secrets.VSCODE_PAT }} - working-directory: typescript/vscode-ext/packages \ No newline at end of file + working-directory: typescript/vscode-ext/packages + + release-github: + runs-on: ubuntu-latest + needs: [publish-to-pypi, publish-to-npm, publish-vscode] + steps: + - name: Build Changelog + id: github_release + uses: mikepenz/release-changelog-builder-action@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Release + uses: mikepenz/action-gh-release@v0.2.0-a03 #softprops/action-gh-release + with: + body: ${{steps.github_release.outputs.changelog}}