added ca mapping method; python structural updates #76
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: Publish to PyPI | |
# run when pushes are made to main or dev branches and there are changes in the grss/version.txt file | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths: | |
- "grss/version.txt" | |
jobs: | |
build-and-upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Initialize repository | |
run: | | |
source initialize.sh --no-tm-overwrite | |
- name: Run build script | |
run: source build_python.sh | |
- name: Show files | |
run: ls -l dist | |
- name: Publish to Test PyPI | |
if: github.ref == 'refs/heads/dev' | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository-url: https://test.pypi.org/legacy/ | |
- name: Publish to PyPI | |
if: github.ref == 'refs/heads/main' | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |