Skip to content

Commit

Permalink
Update build and publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunner246 committed Mar 11, 2024
1 parent 5e85f98 commit e5dac9d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ on:
- 'site/**'

jobs:
publish-to-pypi:
build-and-publish:
name: Build and Publish
runs-on: 'ubuntu-22.04'

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: mv src/attribute_controller/__init__.py src/attribute_controller/__init__.pyi
Expand Down Expand Up @@ -46,7 +47,7 @@ jobs:
--wheel
--outdir dist/
.
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
16 changes: 8 additions & 8 deletions .github/workflows/test_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:
- 'site/**'

jobs:
publish-to-testpypi:
build-and-publish:
name: Test Build and Publish
runs-on: 'ubuntu-22.04'

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: mv src/attribute_controller/__init__.py src/attribute_controller/__init__.pyi
Expand Down Expand Up @@ -47,8 +47,8 @@ jobs:
--wheel
--outdir dist/
.
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/

0 comments on commit e5dac9d

Please sign in to comment.