fix: secret name #15
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 | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
release: | |
name: release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: "3.10" | |
- name: Publish package distributions to PyPI | |
env: | |
TEST_PYPI_API_TOKEN: ${{ secrets.PYPI_TEST_API_TOKEN }} | |
run: pdm publish --repository testpypi --username __token__ --password $TEST_PYPI_API_TOKEN | |
- name: Install dependencies | |
run: | | |
pdm sync -G docs | |
- name: Deploy docs | |
run: | | |
pdm run mkdocs gh-deploy --force |