Skip to content

Commit

Permalink
ci: github page documentation, and pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Oct 21, 2024
1 parent 4b1d759 commit c4b75c0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,22 @@ jobs:
uses: deargen/workflows/.github/workflows/deploy-mkdocs.yml@master
with:
requirements-file: deps/lock/x86_64-manylinux_2_28/requirements_docs.txt
gitlab-project: ${{ vars.GITLAB_PROJECT }}
gitlab-branch: master
version-tag: ${{ github.event.inputs.version-tag }}
deploy-type: tag
secrets:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}

publish-to-pypi:
if: ${{ github.event.inputs.dry-run == 'false' }}
needs: commit-changelog-and-release
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.version-tag }}
- uses: deargen/workflows/actions/setup-python-and-uv@master
- name: Build and upload to PyPI
run: |
uv venv
source .venv/bin/activate
uv pip install build twine
python -m build . --sdist
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --non-interactive

0 comments on commit c4b75c0

Please sign in to comment.