Skip to content

Commit

Permalink
ci: publish github release on tag pushes (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusschiesser authored Apr 26, 2024
1 parent d8d952d commit 44a7fd7
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/publish_github.yml
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 }}
3 changes: 2 additions & 1 deletion packages/core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.turbo
/README.md
LICENSE
LICENSE
*.tgz

0 comments on commit 44a7fd7

Please sign in to comment.