Skip to content

Commit

Permalink
fixed? gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
facundoq committed Dec 26, 2023
1 parent d51d612 commit e978102
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/pipy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@ on:
- '*'

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
build:
name: Build 📦 publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/tinyimagenet
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.x"
- name: Install pypa/setuptools
run: >-
python -m
Expand All @@ -29,6 +34,8 @@ jobs:
run: >-
python setup.py sdist bdist_wheel --universal
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}


0 comments on commit e978102

Please sign in to comment.