Skip to content

Commit

Permalink
build: pypi github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixAbrahamsson committed Jul 12, 2023
1 parent 16c91bd commit f2b9138
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Set PATH
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH

- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python - --version 1.4.2
poetry install
- name: Build wheels
run: |
poetry version $(git tag --points-at HEAD)
poetry build
- name: Upload
env:
USERNAME: __token__
PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
poetry publish --username=$USERNAME --password=$PASSWORD
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fast_s3"
version = "0.0.2"
name = "fast-s3"
version = "0.1.0"
description = "Download images from s3 fast"
authors = ["NextML AB"]
readme = "README.md"
Expand Down

0 comments on commit f2b9138

Please sign in to comment.