Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish job #2

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-20.04
environment: pypi
steps:
- uses: actions/checkout@v3
- run: ls
- name: install poetry
run: curl -sSL https://install.python-poetry.org | python -
- run: poetry run pip install twine
- run: rm -fr dist/
- run: poetry build -f wheel
- run: poetry run twine upload -u __token__ -p ${{ secrets.PUBLISH_TOKEN }} dist/*whl
Empty file added foxy/__init__.py
Empty file.
7 changes: 7 additions & 0 deletions foxy/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import click


@click.command()
@click.argument('files', nargs=-1, type=click.Path())
def main(files):
click.echo(files)
31 changes: 31 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[tool.poetry]
name = "foxy"
version = "0.1.0"
description = ""
authors = ["Yoav Kleinberger <[email protected]>"]
license = "MIT"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.12"
click = "^8.1.7"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


[tool.poetry.scripts]
foxy-imports = 'foxy.main:main'