Skip to content

added ca mapping method; python structural updates #76

added ca mapping method; python structural updates

added ca mapping method; python structural updates #76

Workflow file for this run

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 }}