Skip to content

Commit 1156b55

Browse files
authored
Merge pull request #332 from DerekStride/upload-all-files-to-release
build: Upload all files to release
2 parents 2924464 + c75e761 commit 1156b55

File tree

9 files changed

+50
-10
lines changed

9 files changed

+50
-10
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ jobs:
1717
- run: npm install
1818
- name: Publish parser on GitHub Pages
1919
run: |
20-
cp -r bindings queries src binding.gyp Cargo.lock Cargo.toml \
21-
CMakeLists.txt go.mod grammar.js LICENSE Makefile package-lock.json \
22-
package.json Package.swift pyproject.toml setup.py tree-sitter.json \
20+
cp -r bindings queries src binding.gyp Cargo.toml \
21+
CMakeLists.txt go.mod grammar.js LICENSE Makefile \
22+
package.json Package.swift pyproject.toml setup.py \
23+
tree-sitter.json \
2324
docs
2425
2526
- uses: ruby/setup-ruby@v1

.github/workflows/tag.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Packages
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
parser-artifacts:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: tree-sitter/setup-action@v2
15+
with:
16+
install-lib: false
17+
- run: tree-sitter generate
18+
- name: Package parser artifacts
19+
run: tar -czf "tree-sitter-sql-${{ github.ref_name }}.tar.gz" .
20+
- name: Upload Release Artifacts
21+
uses: softprops/action-gh-release@v2
22+
with:
23+
draft: true
24+
generate_release_notes: true
25+
files: |
26+
tree-sitter-sql-${{ github.ref_name }}.tar.gz

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
44

5+
## [0.3.11](https://github.com/derekstride/tree-sitter-sql/compare/v0.3.10...v0.3.11) (2025-09-30)
6+
57
## [0.3.10](https://github.com/derekstride/tree-sitter-sql/compare/v0.3.9...v0.3.10) (2025-09-24)
68

79
### Features

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.13)
22

33
project(tree-sitter-sql
4-
VERSION "0.3.10"
4+
VERSION "0.3.11"
55
DESCRIPTION "Tree-sitter Grammar for SQL"
66
HOMEPAGE_URL "git+https://github.com/derekstride/tree-sitter-sql.git"
77
LANGUAGES C)

CONTRIBUTING.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,16 @@ Verify that all the changes are correct and push the updates to a new branch.
7171
git push
7272
```
7373
74-
Once that PR is merged, create a new Release [on Github](https://github.com/DerekStride/tree-sitter-sql/releases). When
75-
the release is published Github Actions will publish the new version to npm.
74+
### Tagging
75+
76+
Once that PR is merged, pull the latest `main` and create the new tag, finally, push the tag.
77+
78+
```
79+
git pull origin main
80+
git tag v0.3.11
81+
git push --tags
82+
```
83+
84+
This will trigger a workflow that will generate the parser files & upload them to a new
85+
[draft release](https://github.com/DerekStride/tree-sitter-sql/releases). When the release is published Github Actions
86+
will publish the new packages to npm, cargo, & pypi.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tree-sitter-sequel"
33
description = "Tree-sitter Grammar for SQL"
4-
version = "0.3.10"
4+
version = "0.3.11"
55
authors = ["derek stride"]
66
license = "MIT"
77
readme = "README.md"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@derekstride/tree-sitter-sql",
3-
"version": "0.3.10",
3+
"version": "0.3.11",
44
"description": "Tree-sitter Grammar for SQL",
55
"main": "bindings/node",
66
"types": "bindings/node",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "tree-sitter-sql"
77
description = "Tree-sitter Grammar for SQL"
8-
version = "0.3.10"
8+
version = "0.3.11"
99
keywords = ["incremental", "parsing", "tree-sitter", "sql"]
1010
classifiers = [
1111
"Intended Audience :: Developers",

tree-sitter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"metadata": {
17-
"version": "0.3.10",
17+
"version": "0.3.11",
1818
"license": "MIT",
1919
"description": "Tree-sitter Grammar for SQL",
2020
"authors": [

0 commit comments

Comments
 (0)