Skip to content

Bump version: 3.0.0-alpha.8 → 3.0.0-alpha.9 #6

Bump version: 3.0.0-alpha.8 → 3.0.0-alpha.9

Bump version: 3.0.0-alpha.8 → 3.0.0-alpha.9 #6

name: Publish to TestPyPI
on:
push: # need to use this temporarly to be able to publish
workflow_dispatch: # works only on default branch
jobs:
build-tree-sitter-usfm3:
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node and npm
uses: actions/setup-node@v4
with:
node-version: 20
- name: Run tests
run: |
cd tree-sitter-usfm3
npm install --save nan
npm install --save-dev tree-sitter-cli
./node_modules/.bin/tree-sitter generate
./node_modules/.bin/tree-sitter test
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build release distributions
run: |
cd tree-sitter-usfm3
python -m pip install build setuptools
python -m build
- uses: actions/upload-artifact@v3
with:
path: tree-sitter-usfm3/dist/*.tar.gz
build-py-usfm-parser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build release distributions
run: |
cd py-usfm-parser
python -m pip install build setuptools
python -m build
- uses: actions/upload-artifact@v3
with:
path: py-usfm-parser/dist/*.tar.gz
publish_to_pypi:
needs: [build-tree-sitter-usfm3, build-py-usfm-parser]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/download-artifact@v3
with:
name: artifact
path: tree-sitter-usfm3/dist/
- uses: actions/download-artifact@v3
with:
name: artifact
path: py-usfm-parser/dist/
- name: Publish tree-sitter-usfm3 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PUBLISH_ON_TEST_PYPI }}
repository_url: https://test.pypi.org/legacy/
packages_dir: tree-sitter-usfm3/dist/
- name: Publish usfm-grammar 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PUBLISH_ON_TEST_PYPI }}
repository_url: https://test.pypi.org/legacy/
packages_dir: py-usfm-parser/dist/