Skip to content

Debug

Debug #480

Workflow file for this run

name: CI
# Run on all PR's and on pushes/merges to deploy and master
on:
pull_request:
branches: ['master', '!paper.md']
push:
branches: ['master', '!paper.md']
tags: ["v*"]
jobs:
build_and_publish:
# This workflow follows the best practices outlined here:
# https://github.com/marketplace/actions/pypi-publish
# for deploying a project to PyPI via a GH action. It only runs on tags
name: Upload release to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/lightshow/
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build and apply version
run: bash scripts/build_project.sh
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://upload.pypi.org/legacy/