Skip to content
Snippets Groups Projects
Commit 1d8f0079 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix send-to-pypi step

parent 52a89dae
No related branches found
No related tags found
No related merge requests found
...@@ -56,8 +56,11 @@ jobs: ...@@ -56,8 +56,11 @@ jobs:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
run: | run: |
echo -n '__version__ = "' > satella/__init__.py echo -n '__version__ = "' > satella/__init__.py
echo -n '${{ github.event.release.tag_name }}' >> satella/__init__.py echo -n $TAG_NAME >> satella/__init__.py
echo '"' >> satella/__init__.py echo '"' >> satella/__init__.py
cat satella/__init__.py
env:
TAG_NAME: ${{ github.ref_name }}
- name: Build - name: Build
run: python -m build . run: python -m build .
- name: Archive production artifacts - name: Archive production artifacts
...@@ -72,6 +75,7 @@ jobs: ...@@ -72,6 +75,7 @@ jobs:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
environment: Env1 environment: Env1
steps: steps:
- uses: actions/checkout@main
- uses: actions/setup-python@main - uses: actions/setup-python@main
name: Setup Python name: Setup Python
with: with:
...@@ -86,7 +90,7 @@ jobs: ...@@ -86,7 +90,7 @@ jobs:
- name: Send over packages to PyPI - name: Send over packages to PyPI
run: | run: |
echo $PYPIRC_PASSWORD_DATA > ~/.pypirc echo $PYPIRC_PASSWORD_DATA > ~/.pypirc
twine upload dist/* twine upload /home/runner/work/satella/satella/satella*.whl /home/runner/work/satella/satella/satella*.tar.gz
env: env:
PYPIRC_PASSWORD_DATA: ${{ secrets.PYPIRC_PASSWORD_DATA }} PYPIRC_PASSWORD_DATA: ${{ secrets.PYPIRC_PASSWORD_DATA }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment