Skip to content

Commit

Permalink
Updated release action
Browse files Browse the repository at this point in the history
  • Loading branch information
belerico committed Nov 22, 2023
1 parent 168f22b commit b5377e6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/sheepit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
build:
name: Build distribution 📦
name: Build distribution 🐑
runs-on: ubuntu-latest

steps:
Expand All @@ -29,7 +29,7 @@ jobs:

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
Publish ⚡ SheepRL 🐑 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
Expand All @@ -43,11 +43,11 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
- name: Publish distribution 🐑 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
name: Publish ⚡ SheepRL 🐑 to TestPyPI
needs:
- build
runs-on: ubuntu-latest
Expand All @@ -60,7 +60,9 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
- name: Publish distribution 🐑 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TEST_TOKEN }}
repository-url: https://test.pypi.org/legacy/

0 comments on commit b5377e6

Please sign in to comment.