Skip to content

Commit

Permalink
release gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
dgk committed Aug 26, 2023
1 parent 7b3feaa commit 8f91114
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,34 @@ jobs:
environment:
name: pypi
url: https://pypi.org/p/django-business-logic

permissions:
id-token: write
packages: write
contents: write

steps:

- name: Checkout code
uses: actions/checkout@v2

# - name: Set up Python 3.10
# uses: actions/setup-python@v4
# with:
# python-version: '3.10'
#
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install wheel
#
# - name: Build package
# run: |
# python setup.py sdist bdist_wheel
#
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Create Release
id: create_release
Expand Down

0 comments on commit 8f91114

Please sign in to comment.