Skip to content

Commit

Permalink
ci: update input descriptions, change pypi_token input
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Sep 28, 2023
1 parent 4887958 commit 08563a2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/doxygen_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ on:
workflow_call:
inputs:
output_dir:
description: "Output directory for Doxygen to compile"
required: true
type: string
cache_key:
description: |
The cache key to pass to mkdocs_build, e.g.:
echo "cache_key=docs-build-$(date --utc '+%V')" >> $GITHUB_ENV
Then use, with: cache_key: ${{ env.cache_key }}
required: false
type: string

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/mkdocs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ on:
workflow_call:
inputs:
cache_path:
description: "The path from a previously cached job, e.g. `apidocs` from Doxygen."
required: false
type: string
cache_key:
description: |
The cache key to receive from a previous job, e.g.:
echo "cache_key=docs-build-$(date --utc '+%V')" >> $GITHUB_ENV
Then use, with: cache_key: ${{ env.cache_key }}
required: false
type: string

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ name: Publish to PyPi.org
on:
workflow_call:
inputs:
pypi_token:
token_secret_name:
description: "The name of the repository secret containing the PyPi token."
required: true
type: string

jobs:
publish_to_pypi:
name: Publish to PyPi
runs-on: ubuntu-latest
env:
PYPI_TOKEN: ${{ secrets[inputs.token_secret_name] }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -22,5 +25,5 @@ jobs:
- name: Publish
run: |
pdm config repository.pypi.username "__token__"
pdm config repository.pypi.password "${{ inputs.pypi_token }}"
pdm config repository.pypi.password "$PYPI_TOKEN"
pdm publish

0 comments on commit 08563a2

Please sign in to comment.