Skip to content

Commit

Permalink
fix: Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeonus authored Mar 23, 2024
1 parent 9f06b8c commit c7141ca
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ jobs:
- "3.9"
- "3.8"
- "3.7"

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.py }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}



- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand All @@ -48,8 +47,7 @@ jobs:
- name: Test with tox
run: |
tox
pypi-publish:
name: Upload release to PyPI
needs: test
Expand All @@ -76,7 +74,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand All @@ -86,30 +84,35 @@ jobs:
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements/publish.txt
- name: Configure git
run: |
git config --global user.name "semantic-release (via GitHub Actions)"
git config --global user.email "semantic-release@gh"
- name: semantic-release publish if master
if: github.ref == 'refs/heads/release/v1'
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}


- name: semantic-release changelog
run: semantic-release changelog

- name: build distribution
run: python3 -m build


- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c7141ca

Please sign in to comment.