update: fixing pom #26
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
name: Build and Deploy Python Parser | |
on: | |
push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install ANTLR4 and Python dependencies | |
run: | | |
# Add installation steps for ANTLR4 here | |
sudo apt-get update | |
sudo apt-get install -y python3 python3-pip | |
make dev | |
- name: Generate and Build Python Code | |
run: make python_parser | |
- name: Build and publish python package | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
run: | | |
make python_prepare_package | |
cd python && twine upload dist/* |