Skip to content

Commit

Permalink
Merge branch 'TEParsons:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons authored Apr 25, 2024
2 parents 82c3ae4 + fd30fc9 commit 590b2be
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish package

on:
workflow_dispatch:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.10'

- name: Install packages
run: |
python -m pip install build twine
- name: Build
run: |
python -m build
- name: Upload to PyPi
if: startsWith(github.ref, 'refs/tags/')
run: |
twine upload dist/* --repository pypi -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
- name: Upload to TestPyPi
run: |
twine upload dist/* --repository testpypi -u __token__ -p ${{ secrets.TESTPYPI_API_TOKEN }}
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ authors = [
]
# a license tells other people how to use your code and protects you from stealing
license = { text = "MIT" }
# add any packages which your plugin needs in order to run
dependencies = []

[project.urls]
# some handy links to help people find your plugin's documentation
Expand All @@ -26,7 +28,7 @@ docs = [
]
# dependencies for running the test suite
tests = [
"psychopy @ git+https://github.com/psychopy/psychopy@release",
"psychopy",
"pytest",
]

Expand Down

0 comments on commit 590b2be

Please sign in to comment.