move lock file to temp path #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release package to pypi | |
on: | |
push: | |
tags: | |
- 'v*' | |
permissions: | |
contents: read | |
jobs: | |
release-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools twine | |
- name: build release distributions | |
run: | | |
# NOTE: put your own distribution build steps here. | |
python setup.py sdist | |
cd test | |
python setup.py sdist | |
- name: upload windows dists | |
uses: actions/upload-artifact@v3 | |
with: | |
name: release-dists | |
path: dist/ | |
- name: upload windows dists example | |
uses: actions/upload-artifact@v3 | |
with: | |
name: release-dists-test | |
path: test/dist/ | |
pypi-publish: | |
runs-on: ubuntu-latest | |
needs: | |
- release-build | |
permissions: | |
id-token: write | |
steps: | |
- name: Retrieve release distributions | |
uses: actions/download-artifact@v3 | |
with: | |
name: release-dists | |
path: dist/ | |
- name: Retrieve release distributions example | |
uses: actions/download-artifact@v3 | |
with: | |
name: release-dists-test | |
path: dist/ | |
- name: Publish release distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |