Bump spiffe-tls to 0.1.4 (#258) #13
Workflow file for this run
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 | |
on: | |
push: | |
tags: | |
- 'spiffe-*' | |
- 'spiffe-tls-*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
# Conditional step for spiffe module | |
- name: Publish spiffe | |
if: startsWith(github.ref, 'refs/tags/spiffe-') && !startsWith(github.ref, 'refs/tags/spiffe-tls-') | |
run: | | |
cd spiffe | |
make build | |
poetry publish | |
# Conditional step for spiffe-tls module | |
- name: Publish spiffe-tls | |
if: startsWith(github.ref, 'refs/tags/spiffe-tls-') | |
run: | | |
cd spiffe-tls | |
make build | |
poetry publish |