-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a partial test commit to make sure we can get some base setup for releasing
- Loading branch information
1 parent
00fdaab
commit 5dea305
Showing
5 changed files
with
44 additions
and
21 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
name: Upload Python Package | ||
on: | ||
release: | ||
types: [published] | ||
workflow_call: | ||
inputs: | ||
DRY_RUN: | ||
description: Bool to check for dry-run | ||
type: boolean | ||
default: true | ||
PUBLISH: | ||
description: Bool if to publish to PyPi Prod | ||
type: boolean | ||
default: false | ||
workflow_dispatch: | ||
permissions: | ||
contents: read | ||
jobs: | ||
deploy: | ||
dry-run: | ||
if: ${{ inputs.DRY_RUN }} | ||
name: PyPi Dry-Run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build and publish to pypi | ||
- name: Build and dry-run publish to PyPi | ||
uses: JRubics/poetry-publish@v2.0 | ||
with: | ||
pypi_token: ${{ secrets.PYPI_API_TOKEN }} | ||
poetry_install_options: "--sync --no-root" | ||
poetry_install_options: "--sync" | ||
poetry_publish_options: "--dry-run" | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v3 | ||
# with: | ||
# python-version: '^3.12' | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# - name: Build package | ||
# run: poetry publish --build | ||
# - name: Publish package | ||
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
# with: | ||
# user: __token__ | ||
# password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
publish: | ||
if: ${{ inputs.PUBLISH }} | ||
name: Publish to PyPi | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build and publish to pypi | ||
uses: JRubics/poetry-publish@v2.0 | ||
with: | ||
pypi_token: ${{ secrets.PYPI_API_TOKEN }} | ||
poetry_install_options: "--sync" |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
# akapy | ||
|
||
Home to a Python wrapper for the Akamai API. | ||
|
||
## Notes | ||
|
||
## Changes | ||
|
||
## Questions |
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