Skip to content

Commit

Permalink
Merge pull request #2 from idoavrah/dev
Browse files Browse the repository at this point in the history
fix: publish action
  • Loading branch information
idoavrah authored Jul 21, 2023
2 parents 90609d9 + 6a8ad55 commit 61d0a91
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Python Package (Test PyPiI)
name: Upload Python Package to PyPI

on:
workflow_dispatch:
Expand All @@ -12,13 +12,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
python-version: "3.x"

- name: Install dependencies
run: |
Expand All @@ -28,13 +27,37 @@ jobs:
- name: Build package
run: python -m build

publish:
- name: ls
run: |
pwd
ls -lR
publish-test:
runs-on: ubuntu-latest
environment: test
permissions:
id-token: write
id-token: write
needs: build

steps:

- name: ls
run: |
pwd
ls -lR
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/

# publish-production:
# runs-on: ubuntu-latest
# environment: production
# permissions:
# id-token: write
# needs: publish-test

# steps:
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
authors = [{ name = "Ido Avraham" }]
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
Expand Down

0 comments on commit 61d0a91

Please sign in to comment.