Skip to content

Use rev-parse is-inside-work-tree to check if in git repo (#32) #10

Use rev-parse is-inside-work-tree to check if in git repo (#32)

Use rev-parse is-inside-work-tree to check if in git repo (#32) #10

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- run: python -m pip install --upgrade pip build
- run: python -m build
- if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}