Skip to content

chore: update pre-commit hooks #668

chore: update pre-commit hooks

chore: update pre-commit hooks #668

Workflow file for this run

name: Build
on:
push:
branches:
- master
- v*
tags:
- "*"
pull_request:
branches:
- master
jobs:
single-header:
name: Source Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v4
- name: Build sdist for Python
run: pipx run build --sdist
- name: Prepare CMake config
run: cmake -S . -B build
- name: Make package
run: cmake --build build --target package_source
- name: Copy source packages
run: |
mkdir -p GooFit-Source
cp build/GooFit-*-Source.tar.gz GooFit-Source
cp build/GooFit-*-Source.tar.gz .
- uses: actions/upload-artifact@v3
with:
name: GooFit Source
path: GooFit-Source
- uses: actions/upload-artifact@v3
with:
name: Python SDist
path: dist
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}
- name: Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
with:
files: |
GooFit-*-Source.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}