Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/publish-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ on:
description: 'This is the repository-url parameter for pypa/gh-action-pypi-publish'
required: true
type: string
environment:
description: 'PyPI/TestPyPI name and url are required'
type: environment
environment_name:
description: 'Name of environment that specifies PyPI/TestPyPI url'
type: string
required: true
secrets:
GH_TOKEN:
Expand All @@ -31,14 +31,16 @@ jobs:
publish:
name: Build
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
environment: ${{ inputs.environment_name }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_REPO: ${{ github.repository }}

steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/publish-to-testpypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
jobs:
publish:
name: Publish wheel to TestPyPI
environment:
name: testpypi
url: https://test.pypi.org/p/seclab-taskflow-agent2
permissions:
contents: write
id-token: write # For trusted publishing
Expand All @@ -18,8 +21,6 @@ jobs:
version: ${{ inputs.version }}
release_notes: ${{ github.head_ref }}
repository_url: https://test.pypi.org/legacy/
environment:
name: testpypi
url: https://test.pypi.org/p/seclab-taskflow-agent2
environment: testpypi
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}