-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: publish github release on tag pushes (#771)
- Loading branch information
1 parent
d8d952d
commit 44a7fd7
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Publish to GitHub Releases | ||
|
||
on: | ||
push: | ||
tags: | ||
- "llamaindex@*" | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build tarball | ||
run: | | ||
pnpm pack | ||
working-directory: packages/core | ||
|
||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "packages/core/llamaindex-*.tgz" | ||
name: Release ${{ github.ref }} | ||
bodyFile: "packages/core/CHANGELOG.md" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.turbo | ||
/README.md | ||
LICENSE | ||
LICENSE | ||
*.tgz |