Skip to content

MAINT: Check if .git directory exists before running git #12

MAINT: Check if .git directory exists before running git

MAINT: Check if .git directory exists before running git #12

Workflow file for this run

name: Publish
on:
push:
branches:
- master
tags:
- '*'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Installing Python
run: |
sudo apt-get update -qy
sudo apt-get install -y \
python3-dev \
python3-pip \
python3-venv
python3 -m venv ../venv
source ../venv/bin/activate
pip install build
- name: Build package
run: |
source ../venv/bin/activate
python3 -m build . -s
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}